WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WooCommerce – excelling eCommerce] Remove Certain Product Category from Shop/Home

[Resolved] [Plugin: WooCommerce – excelling eCommerce] Remove Certain Product Category from Shop/Home

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Jolley

    @mikejolley

    Try tweaking the hook

    add_filter( 'pre_get_posts', 'custom_parse_query', 20 );
    
    function custom_parse_query( $q ) {
    
    if ( $q->is_main_query() ) {
    
    // Query here
    
    }
    
    }

    i replaces what you provided, it broke 🙁

    i played around with it myself changing the is_ statement around but to no avail.. what ever it needs to be changed to im not good enough to figure it out

    Plugin Author Mike Jolley

    @mikejolley

    My mistake, add_filter should be add_action

    i still get
    Parse error: syntax error, unexpected $end in /home/site/domains/site.com/wp-content/themes/eyetheme/functions.php on line 71

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: WooCommerce – excelling eCommerce] Remove Certain Product Category from Shop/Home’ is closed to new replies.