Viewing 16 replies (of 16 total)
  • Thread Starter Anointed

    (@anointed)

    I found what may be the offending code snippet:

    function custom_parse_query( $q ) {
    
    	if ( !$q->is_post_type_archive() || is_admin() ) return;
    
    	$q->set( 'tax_query', array(array(
    		'taxonomy' => 'product_cat',
    		'field' => 'slug',
    		'terms' => array( 'ending-soon' ),
    		'operator' => 'NOT IN'
    	)));
    
    	remove_filter( 'parse_query', 'custom_parse_query' );
    
    }
    add_filter( 'parse_query', 'custom_parse_query' );

    I have not done EXTENSIVE testing, but this does seem to solve the infinite loop problem. Still trying to figure out why this function would cause problems. When I do, I’ll post back

Viewing 16 replies (of 16 total)
  • The topic ‘membership infinite loop on top level site’ is closed to new replies.