• Resolved vamos20j

    (@vamos20j)


    I believe there might be a bug with pagination and the expertfile directory shortcode.

    The shortcode I am using is:

    [expertfile-expert-directory fields="title,headline,expertise,city" page_size="10" status=public categories="health and medicine" show_search="false" search_result_topic_max="20" filters= "none" show_powered_by=false]

    The first page of results is accurate in that it shows only experts that are categorized with Health and Medicine. However, page 2 onward is widely inaccurate and includes all types of experts, regardless of category. From what I gather, it shows the second page of ALL experts, ignoring the category filter completely.

    Is this a bug or am I misunderstanding how pagination should work with filters? Alternatively, am I implementing something wrong?

    • This topic was modified 1 year, 2 months ago by vamos20j.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author danstanhope

    (@danstanhope)

    Hey there,

    Thanks for reaching-out & passing along those details. After taking a look, it appears as though your site’s caching is serving the incorrect page.

    As you said, the 1st page is correct but when you go to the second page it appears to match the 2nd page from you other integration(https://today.uconn.edu/experts/?page_number=2&page_size=10). So I think stale data is being served from cache.

    Staying with the experts categorized with ‘health and medicine’, if you paginated to the next page the initial load will be wrong, but if you refresh it’ll be correct.

    If you wouldn’t mind emailing me at dstanhope@expertfile.com I’ll be happy to help troubleshoot further.

    Thanks & best,

    Dan

    Plugin Author danstanhope

    (@danstanhope)

    Sorry! After looking into this a bit more. I think there’s a bug with the plugin. When you filter by category but hide all the filters the category doesn’t get passed along properly.

    Sorry about this and we’ll have a fix pushed out shortly.

    Thanks!

    Dan

    Plugin Author danstanhope

    (@danstanhope)

    Hey there,

    We’ve pushed an updated version(1.0.47) of the plug-in that should fix the issue. If you could please update the plug-in and try with the below shortcode:

    [expertfile-expert-directory fields="title,headline,expertise,city" page_size="10" status="public" categories="health and medicine" show_search=false search_result_topic_max="20" filters="" show_powered_by=false]

    Thanks very much for bringing this to our attention and please don’t hesitate to reach-out with any other questions/concerns.

    Best,

    Dan

    Thread Starter vamos20j

    (@vamos20j)

    Hi Dan,

    Thanks for making that fix! Your changes worked perfectly and we really appreciate it!

    Apologies for the delay, by the way, I was unexpectedly out of the office for several days.

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pagination w/ ExpertFile Directory Shortcode’ is closed to new replies.