Support » Plugin: Portfolio Post Type » Display Portfolio Category and Tags

Viewing 4 replies - 1 through 4 (of 4 total)
  • Perhaps this will do the trick for you?

    List Categories
    <?php echo get_the_term_list( $post->ID, 'portfolio_category', 'Categorized: ', ', ', '' ); ?>

    List Tags
    <?php echo get_the_term_list( $post->ID, 'portfolio_tag', 'Tagged: ', ', ', '' ); ?>


    Another way to do it would be like this…

    echo get_the_term_list( get_the_ID(), 'portfolio_category', "Category: " ); 
    echo get_the_term_list( get_the_ID(), 'portfolio_tag', "Tags: " );



    @chomachomachoma & bryananthonylewis

    Is there a short code for this?… lets say i would insert the short code on my widget.. and one more thing, i used what you’ve suggest, but it appears only one category and it was “Education”, and I inspect the element and it is linked to “http://localhost/wordpress/portfolio_category/education/” which it must be linked to like this “http://localhost/wordpress/portfolio/education/”. Why is it that?

    Plugin Contributor Gary Jones



    You can filter portfoliopost_type_category_args to change the rewrite slug value to whatever you want, but since the single portfolio entries have the rewrite slug of ‘portfolio’, then I don’t think you can choose exactly that and still have it working for taxonomy terms as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display Portfolio Category and Tags’ is closed to new replies.