Forums Forums Search & Filter Pro Next/Previous post within single

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #162016

    Hi

    I am following up this question – https://support.searchandfilter.com/forums/topic/moving-to-nextprevious-post-in-single-php-ignores-search-result/

    Are there any hacks to get around this? So e.g. is there a way of building a set of args that can then be passed to get_adjacent_posts or get_next_post etc or some relevant function? I fear not, but I wanted to double check.

    Perhaps ACF can be somehow integrated, thinking aloud.

    Best

    Anonymous
    #162017

    Sorry, follow up.

    Can one use the information in the URL after performing a search/filter and use this to somehow to define the next required post (on a single page).

    So e.g. I might have a URL for a single post page that is

    https://website.com/find/blog-post-page/?_sfm_year=2016&_sft_institution=university.

    How do I move to the next single-page result which is say https://website.com/find/another-blog-post-page/?_sfm_year=2016&_sft_institution=university?

    It seems information is there, but how can one access it (especially if get_next_posts() is not applicable)?

    Trevor
    #162062

    I am sorry, but this is not possible with the current version of the plugin. Do you want me to make this a feature request?

    Anonymous
    #162258

    OK, sure that would be great. Does this mean it is possible within the wordpress structure? I understood from your previous answer that I linked to that it wasn’t. But I am finding it tough finding much guidance out there on how to access the right function(s)…

    Trevor
    #162267

    IF it is possible, it would take some tricky coding, due to the way WordPress fetches the archives page post ID’s (one page of results at a time, and not as a complete results set). It does it this way to reduce server load, but it doesn’t help with what you want to do.

    So, my simple answer would be, ‘No, it is not possible.’ But of course, nothing is ever that easy to rule as not possible. But I can’t think of a way to do it.

    Anonymous
    #162310

    Thanks, I see… I am still a little surprised at WP as it seems a pretty common thing to do (imgur, newspaper and publishing sites etc). C’est la vie – I’ll hack my UI/UX navigation around this somehow!
    Cheers, D

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