Possible to add pagination to location page?

This topic contains 5 replies, has 2 voices, and was last updated by  Alex Rollin 4 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #532374

    vij
    Expired Member
    Post count: 65

    I have the “location” page set as homepage. I would like to display all listings via pagination. Is it possible to do pagination on the “Location” page?

    #532422

    Alex Rollin
    Moderator
    Post count: 27815

    Unfortunately it is not possible to use the Location page as the Front page. The page is complex and requires queries that are not supported by the front page.

    Tey a different page as the Front page, and then your Location page will automatically show all listings. Configure the GD Listings element to have paging with the option to Enable Location filter.

    #532477

    vij
    Expired Member
    Post count: 65

    This is unfortunate. If the “Location” page and “Places” page both cannot be set as homepage, what are the alternatives if I want to show listings with pagination on the homepage?

    #532491

    Alex Rollin
    Moderator
    Post count: 27815

    Make a custom frontpage. You can still show 1000 listings there.

    https://wpgeodirectory.com/docs-v2/geodirectory/getting-started/front/

    #532493

    vij
    Expired Member
    Post count: 65

    I dont want to show 1000 listings on one page. How can I make Pagination work
    I have the following

    
    
    [gd_map width="100%" height="425px" maptype="ROADMAP" zoom="0" map_type="auto" post_settings="1"]
    [gd_search]
    [gd_categories title="Popular Categories" title_tag="h3" post_type="0" hide_empty="1" sort_by="az" max_level="1" max_count="all" max_count_child="0"]
    [gd_listings title="Popular Places" post_type="gd_place" sort_by="az" title_tag="h3"  post_limit="10" gd_loop_paging show_advanced="after"]
    #532494

    Alex Rollin
    Moderator
    Post count: 27815

    The GD Listings shortcode you are using is incorrect.

    Use the shortcode builder to create a new one.

    Be sure to press the blue button to see the advanced options.

    It is worth it to use the block editor to see all the options or install the classic editor to see the shortcode builder and all the opitons.

    https://wpgeodirectory.com/docs-v2/geodirectory/shortcode-builder/

    Example:

    
    
    
    [gd_listings post_type="gd_place" post_limit="10" sort_by="az" title_tag="h3" layout="1" view_all_link="1" with_pagination="1" top_pagination="1" bottom_pagination="1" pagination_info="after" category="0"]
    
Viewing 6 posts - 1 through 6 (of 6 total)

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

Open Support Ticket