Forums Forums Search & Filter Pro Custom archive page template

Tagged: ,

Viewing 1 post (of 1 total)
  • Trevor
    #184208

    I do not see the do_shortcode needed to output the form?

    The issue with the approach that you have here is what happens if a post has more than one category attached?

    Your code appears to be fetching all the categories defined, then finding, for each category, the posts in it. You then output the posts within subsections of categories, thus would duplicate some posts as they would appear in more than one sub-section.

    Our filter arguments would tend to override what you are trying, but you might try it as a Custom display method and add our filter. This is from our documentation:

    If you prefer to use a more standard template (such as one from your theme) then you might want to use query_posts, again pass in the arguments to $args or alternatively you can run our action which makes things a bit easier:

    do_action("search_filter_query_posts", 123);

    The query argument would be:

    'search_filter_id' => 1234

Viewing 1 post (of 1 total)