increase view of cities in admin section

This topic contains 3 replies, has 3 voices, and was last updated by  Rudi Khoury 5 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #498759

    Rudi Khoury
    Full Member
    Post count: 36

    Hi there!

    I am wondering how i can increase the amount of cities shown on this page in Admin ? [from 10 to 100 maybe?]

    Even if its via code or a little hack – just need to do a pre launch clean of data that was imported.

    The standard wordpress drop down in help that increases the count isnt there.

    #498775

    Guust
    Moderator
    Post count: 29970

    I’ll get a developer to have a look at your question after the weekend.
    Thanks

    #498840

    Kiran
    Moderator
    Post count: 7069

    Hello Rudi,

    Use following PHP snippets to change number of items to show on countries, regions, cities & neighbourhoods on admin side.

    
    
    /**
     * Number of countries to display on countries page. 
     */
    function gd_snippet_location_countries_settings_items_per_page( $per_page ) {
    	$per_page = 50;
    
    	return $per_page;
    }
    add_filter( 'geodir_location_countries_settings_items_per_page', 'gd_snippet_location_countries_settings_items_per_page', 10, 1 );
    
    /**
     * Number of regions to display on regions page. 
     */
    function gd_snippet_location_regions_settings_items_per_page( $per_page ) {
    	$per_page = 50;
    
    	return $per_page;
    }
    add_filter( 'geodir_location_regions_settings_items_per_page', 'gd_snippet_location_regions_settings_items_per_page', 10, 1 );
    
    /**
     * Number of cities to display on cities page. 
     */
    function gd_snippet_location_cities_settings_items_per_page( $per_page ) {
    	$per_page = 50;
    
    	return $per_page;
    }
    add_filter( 'geodir_location_cities_settings_items_per_page', 'gd_snippet_location_cities_settings_items_per_page', 10, 1 );
    
    /**
     * Number of neighbourhoods to display on neighbourhoods page. 
     */
    function gd_snippet_location_neighbourhoods_settings_items_per_page( $per_page ) {
    	$per_page = 50;
    
    	return $per_page;
    }
    add_filter( 'geodir_location_neighbourhoods_settings_items_per_page', 'gd_snippet_location_neighbourhoods_settings_items_per_page', 10, 1 );

    Regards,
    Kiran

    #498945

    Rudi Khoury
    Full Member
    Post count: 36

    Many thanks !! works perfectly !

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount