Forums Forums Search & Filter Pro Link results with current posts on page

Viewing 10 posts - 1 through 10 (of 15 total)
  • Anonymous
    #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
    #54089

    You appear to be using the shortcode results method, but the page is also using a theme template and giving you a second set of results. Is there a reason why you are using the shortcode method and have you tried as an archive?

    Anonymous
    #54090

    I did try as an archive, but I haven’t set that page up or styled it. Is there a way to link the results with the current posts on the page?

    Trevor
    #54094

    Yes, 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
    #54116

    Ok 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?

    Trevor
    #54121

    I do not know, not knowing how what you are using works. If you are having to hack the code of a plugin, that will be an issue when you update it. What them is it, and what page builder are you using?

    It does not appear to be responsive?

    Anonymous
    #54127

    Theme 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

    Trevor
    #54128

    Does it use wp_query()?

    Anonymous
    #54129

    Nah you just really throw in little snippets of php to pull in different things mixed with some basic html

    Trevor
    #54130

    It must get the posts from somewhere?

Viewing 10 posts - 1 through 10 (of 15 total)