1. Docs
  2. Developer Guide
  3. Miscellaneous and Snippets
  4. Changing the number of properties shown per page

Changing the number of properties shown per page

When deciding how many properties to show on each property search results page Property Hive will use the ‘Blog pages show at most’ value set in WordPress under ‘Settings > Reading’.

One way to amend the number of properties shown is to amend this setting. However, if you have a blog page, or display posts elsewhere on your website, changing this value may impact other areas of the site.

The other way to change this is to add the following to your theme’s functions.php file:

add_filter( 'loop_search_results_per_page', 'change_properties_per_page', 20 );
function change_properties_per_page()
{
    return 30; // 30 per page. Change this to match your needs
}
Was this article helpful to you? Yes No