Category search

This topic contains 11 replies, has 3 voices, and was last updated by  Marc Halterman 5 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #470402

    Marc Halterman
    Full Member
    Post count: 22

    Hello,
    I have added Category in Advanced Search. If I select one category, no keywords, then results are not filtered on the category. Is that how it works? Is there a way to filter results on category only?
    https://sweatnetclt.com/
    Thank you

    #470424

    Alex Rollin
    Moderator
    Post count: 27815

    I see there are lots of results besides Yoga!
    I have flagged your question for the developers to let us know if the drop down should be excluding every listing without the selected category.

    #470527

    Kiran
    Moderator
    Post count: 7069

    Hello Marc,

    It should filter category even if for empty keyword search.

    Please provide admin & FTP credentials to look into.

    Kiran

    #470633

    Marc Halterman
    Full Member
    Post count: 22
    This reply has been marked as private.
    #470668

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #471311

    Marc Halterman
    Full Member
    Post count: 22
    This reply has been marked as private.
    #471678

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #471710

    Marc Halterman
    Full Member
    Post count: 22
    This reply has been marked as private.
    #471809

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #471849

    Marc Halterman
    Full Member
    Post count: 22
    This reply has been marked as private.
    #472498

    Kiran
    Moderator
    Post count: 7069

    Hello Marc,

    One of the plugin “WP Ultimate Recipe Premium” causing conflicts and breaking the GeoDirectory search functionality.

    I have added following snippet at WordPress Admin > Snippets > Fix search conflict by WP Ultimate Recipe Premium.

    
    
    /**
     * Fix search conflict by WP Ultimate Recipe Premium.
     */
    function gd_snippet_fix_wpurp_search( $post_type, $query ) {
    	if ( geodir_is_page( 'search' ) && $query->is_main_query() ) {
    		$post_type = $query->get( 'post_type' );
    	}
    
    	return $post_type;
    }
    add_filter( 'wpurp_query_posts', 'gd_snippet_fix_wpurp_search', 10, 2 );

    Please check and let us know.

    Regards,
    Kiran

    #472634

    Marc Halterman
    Full Member
    Post count: 22

    Thank you Kiran. The snippet you created fixed the issue. I appreciate your attention to my site.
    Regards,

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount