Forums › Forums › Search & Filter Pro › display specific search results instead of single post
- This topic has 15 replies, 2 voices, and was last updated 8 years, 9 months ago by
Trevor.
-
Trevor(Private) January 23, 2017 at 5:45 pm #84699
So, on any given results page, you would have the chosen result, plus 999 other results in a grid? Would that not be just a little hard on anybody using a mobile phone? The data usage would be massive.
In theory, yes, it can work, but you would need to use one of our filters to exclude the post id of the single result page from the unfiltered results using the
'post__not_in'query argument, and you would need to have a second loop on the page to display these (such as an S&F results shortcode).Anonymous(Private) January 23, 2017 at 6:45 pm #84713ok , when you look @ http://www.plasticat.net
you see 2 test posts.if you visit the unlinked (only in sitemap) single post page:
http://plasticat.net/robbie-die-robbe-rockrobbend/
you have only that one post. but i want the other coming after that one.
of course not all 999 are loaded. its seperated in pages of course. amount of shown posts will be determined by some performance tests on different devices later.sure i could link from the single.php with something like: explore all the other songs, blabla. but thats not very elegant and will lead to a lot of visitors that leave without seeing the real webpage.
and when i use the redirect to the mainpage, the user who searched for that specific track on google, wont even be taken to that one.as i am not a coder, and dont know how to setup that second loop on that single.php
so its the regular single.php target result of the post + loading a second loop displaying all search and filter results.could you help me with that code?
Anonymous(Private) January 24, 2017 at 1:12 pm #84901no i think you understood it right in the first place, but its a bit tricky to explain.
what i want to avoid is, that the user who comes from a single song google search, is arriving on a single post page with only one post entry.
instead i want him to see the whole catalog, unfiltered, but with the song he searched for in first position.
so basicly the home page + the single post in first position.what we have is the target link to that single post. so each single post page must contain the single post + the main search and filter loop after.
i would be thrilled if you could pull this of somehow!
Trevor(Private) January 24, 2017 at 5:04 pm #85000mmm. ok. I cannot think of a way to do this, because the form would need to work without a results page being defined. I think we do plan to add the possibility of ‘Use current page as the results Page’ but that would be the next major version (v3)
Trevor(Private) January 24, 2017 at 5:49 pm #85038You maybe able to do so via custom theme coding, but as the loop requires no filtering other than to exclude the current post, that can be done in a normal template without the need for Search&Filter. All you would need to do is add a
post__not_into the wp_query arguments where the value for that is the current post_id. -
AuthorPosts