ID, $meta_key ); if ( isset( $shortcode_attributes['exclude_tags'] ) ) { $values = implode( $values ); $exclude_tags = 'array( "' . implode( '", "', explode( ',', $shortcode_attributes['exclude_tags'] ) ) . '" )'; $shortcode_attributes['tax_query'] = "array( 'relation' => 'AND', array('taxonomy' => '{$taxonomy}' ,'field' => 'slug','terms' => '{$values}', 'operator' => 'IN'), array('taxonomy' => 'attachment_tag','field' => 'slug','terms' => {$exclude_tags}, 'operator' => 'NOT IN') )"; unset( $shortcode_attributes['exclude_tags'] ); } else { if ( is_array( $values ) ) { $shortcode_attributes[ $taxonomy ] = implode( ',', $values ); } } unset( $shortcode_attributes['parent_meta'] ); } return $shortcode_attributes; } // mla_gallery_attributes_filter } // Class MLAProjectSlugExample /* * Install the filters at an early opportunity */ add_action('init', 'MLAProjectSlugExample::initialize'); ?>