• Resolved tgiokdi

    (@tgiokdi)


    I’ve been able to edit the plugin to exclude tags by tag ID by adding this:

    line 139:

    
    if( isset($_GET["csrp_exclude_tax_term_id"]) ){
    		$csrp_exclude_tax_term_id = sanitize_text_field($_GET["csrp_exclude_tax_term_id"]);	
    	}
    

    and line 264:

    
    
    	if( isset($csrp_tax_name) && !empty($csrp_tax_name) && isset($csrp_exclude_tax_term_id) && !empty($csrp_exclude_tax_term_id)){
    		$csrp_tax_term_id_array = explode(",",$csrp_exclude_tax_term_id);
    		$args['tax_query'] = array(
    				array(
    			'taxonomy' => 'post_tag',
                'field'    => 'ID',
                'terms'    => $csrp_tax_term_id_array,
                'operator' => 'NOT IN',
    				)
    			);
    	}
    

    Can this be added in to the official plugin?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Excluding Specific Tags?’ is closed to new replies.