New Landing How can we help? Cardinal Custom Search Template sans WP_Query

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Cardinal
  • #215220
    SmallDogCreative
    Member
    Post count: 55

    Greetings!

    On the page link provided or any page that I create to display blog archives using either the default archive behavior or the swift page builder blog asset, I am using DesignAndCodes’ Search & Filter Pro plugin (specifically, the sidebar widget).

    Due to the fact that Cardinal uses a custom WP_Query for posts, the required widget won’t work. The plugin developer suggests the following http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/#h-bad-template

    TL;DR version:

    1) Copy search.php or archive.php
    2) Assign that as the plugin’s template
    3) Remove references to WP_Query, get_posts or query_posts

    Save it and it should work. I tried this on Cardinal (copying both search.php and archive.php), but neither file contains the loop. I’m not sure where Cardinal calls its loop from, but it appears to be from swift-framework > content > sf_blog.php or somewhere else.

    I only want to use the “loopless” template for one page (the page link provided).

    QUESTION: Is there an easy way to create a new search-filter.php search template page that uses all the required assets, but does not use Swift’s custom loop?

    #215248
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You need to edit archive.php file at /cardinal/swift-framework/layout/.
    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.