Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter engjoyhu

    (@engjoyhu)

    I use Version 0.56

    In this version:

    if ( $this->utils->lcp_not_empty(‘exclude_tags’) ){
    $args = $this->lcp_excluded_tags($params);
    }

    and

    private function lcp_excluded_tags($args){
    $excluded_tags = explode(“,”, $args[‘exclude_tags’]);
    $tag_ids = array();
    foreach ( $excluded_tags as $excluded){
    $tag_ids[] = get_term_by(‘slug’, $excluded, ‘post_tag’)->term_id;
    }
    $args[‘tag__not_in’] = $tag_ids;
    return $args;

    and it doesn’t work

    What should I do?

    thanks

Viewing 1 replies (of 1 total)