• Resolved moklet

    (@moklet)


    When i do a search with this plugin it either returns the page template I where i embedded the search plugin or the default search template.

    If i search with a selected category it shows a page with the page template i am using, but if i use all categories it defaults to the default search page.

    I would love for it always to use the template it is embedded in or have an option to do so

    otherwise the plugin is great

    https://www.ads-software.com/extend/plugins/facetious/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter moklet

    (@moklet)

    Got it resolved. I had to specify a dedicated post type i wanted to search. This bit is missing in the documentation. I had to go through the code to find out about its existence

    here is the code

    <?php do_action( 'facetious', array(
        'submit' => 'Search',
    	'class' => 'facetious_form',
    	'post_type' => array('listing'),
        'fields' => array(
            's',
            'category',
            'listing_categories'
    		)
    ) );?>

    with ‘post_type’ => array(‘listing’) you create a hidden field called facetious_post_type with value listing.

    Hope this helps someone

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks moklet, I’ll get the plugin updated to better handle this when there’s no post_type parameter present.

    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search with all categories / selected category’ is closed to new replies.