Forums › Forums › Search & Filter Pro › Link results with current posts on page
- This topic has 14 replies, 2 voices, and was last updated 8 years, 10 months ago by
Trevor.
-
Anonymous(Private) August 10, 2016 at 11:24 am #54083
http://ss-2016.thenuse.co/insights/best-practice-guides/
If you have a look on this page, I already have all my posts being pulled in and styled the way I need. Is there a way to link the search form I have with those posts instead of pulling in the new results and doubling everything?
Trevor(Private) August 10, 2016 at 12:36 pm #54094Yes, but you have to add an argument to the arguments being supplied to the wp_query INSTEAD of putting the results shortcode in. If you have access to the template for that page, look for the array (list of arguments) being passed. Let me know if you find them. It would look something like this:
$args = array( 'post_type' => 'resources', 'post_status' => 'publish', 'posts_per_page' => '10', 'search_filter_id' => '456' );
But notice the last one? I added that. That’s the results filter being added. Notice every line ends with a
,
except the last one.Anonymous(Private) August 10, 2016 at 3:42 pm #54116Ok right. The page is built with a layout builder plugin and the current posts are being pulled in via a plugin called “ajax load more”. That plugin has an area where I can pull in what I need for the posts, featured image, post title etc. Is that where I would put it?
Anonymous(Private) August 10, 2016 at 4:04 pm #54127Theme is custom and still being built hence it’s not responsive yet. Built with the Genesis framework though. And the layout builder is page builder by site origin
It’s not hacking the plugin. It has a html/php template builder where you can put together the layout for each posts and the information it pulls in
-
AuthorPosts