Forums › Forums › Search & Filter Pro › Next/Previous post within single
Tagged: Next Previous
- This topic has 5 replies, 2 voices, and was last updated 8 years, 1 month ago by
Anonymous.
-
Anonymous(Private) February 25, 2018 at 11:45 pm #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(Private) February 25, 2018 at 11:58 pm #162017Sorry, 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)?Anonymous(Private) February 26, 2018 at 9:23 pm #162258OK, 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(Private) February 26, 2018 at 10:22 pm #162267IF 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.
-
AuthorPosts