Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Excluding portfolio items from Portofolio Category

Home / Forums / Virtue Theme / Excluding portfolio items from Portofolio Category

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
December 8, 2017 at 6:28 am

Hi Ben,

I’m trying to exclude a specific category from Portfolio Category Pages. I added this part of code I found in Pinnacle discussion to page-portfolio-category.php, but it doesn’t work:

$args = array( 'hide_empty=0',
'tax_query' => array (
array(
'taxonomy' => 'portfolio-type',
'terms' => 'neaktualno', // Slug of term that I wanted to exclude
'field' => 'slug',
'operator' => 'NOT IN',
),
)
);
$terms = get_terms("portfolio-type", $args);

  • The forum ‘Virtue Theme’ is closed to new topics and replies.