Pagination within categories

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

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

Open Support Ticket
  • Author
    Posts
  • #502082

    Dave
    Free User
    Post count: 10

    Hi,

    We’re using Geodirectory on this site: https://marketcare.com

    We service the medical field and have our listings are categorized by ailment. When our visitor hits the site, they can navigate to their specific ailment and get local listings of doctors.

    The issue we’re having is that when we select an ailment, the directory presents us with a listing of locations. If we navigate to the first listing we can see the info about it, when we hit “Next” we expect to be taken to the next location in that category. Unfortunately, clicking “Next” takes us to a listing that is not necessarily associated with the category.

    I made a short video to better show the issue:

    We’re using the following shortcode to get the pagination on the listings: gd_single_next_prev

    How can we control the listings that are displayed using the “Next” and “Previous” buttons?

    Thanks,
    Dave

    #502135

    Alex Rollin
    Moderator
    Post count: 27815

    That is ordered by post date, the date that is shown on the right hand side when you visit:

    WP Backend – Places (CPT) – All

    There is not a way to change that, as far as I know.

    What you are looking for is to sort by categories? Do you already sort your listings that way? Ascending, Descending? Meaning, have you setup the following already? Or, if not, what is your sort now?

    GD Places -> Settings – Custom Fields – Category – Show Advanced – Add to sorting options

    GD Places – Settings – Sort – Categories – Set as default sort, enable, Ascending

    Please share WP Admin credentials in a private reply along with login URL if we need to check the settings.

    Thanks

    #502145

    Dave
    Free User
    Post count: 10

    Hey Alex,

    Thanks for the response.

    Actually it’s not a sort, we want to filter the Previous/Next locations by the category that the customer is searching in.

    So if someone selects Dentists, then the first page will list all of the dentists we have, when they’re looking at a dentists detail record, the “Next”/”Previous” links will only be navigating to the other dentist locations.

    Dave

    #502185

    Alex Rollin
    Moderator
    Post count: 27815

    OK, to customize that widget, you want the file at:

    geodirectory/includes/widgets/class-geodir-widget-single-next-prev.php

    More information about customization is here: https://wpgeodirectory.com/docs-v2/faq/customizing/

    If you need hands on help with that you can find it here: https://geodirectoryexperts.com

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