current portfolio category

This topic contains 1 reply, has 2 voices, and was last updated by  CTHthemes 7 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #14973


    Support Expired

    . how do I output the current portfolio category , I need to display it inside the breadcrumbs, in single- portfolio-page I have looked over and over but didn’t find it in functions.php.



    Here it is:

    in monolit_breadcrumbs function.

    You can check if $post_type is portfolio
    then use wp_get_post_terms to get portfolio_cat term.

    $terms = wp_get_post_terms( get_the_ID() , 'portfolio_cat' );

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.