Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor 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
    
    }
    
    }
    Thread Starter miketopher

    (@miketopher)

    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 Contributor Mike Jolley

    (@mikejolley)

    My mistake, add_filter should be add_action

    Thread Starter miketopher

    (@miketopher)

    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 ‘[Plugin: WooCommerce – excelling eCommerce] Remove Certain Product Category from Shop/Home’ is closed to new replies.