WordPress.org

Ready to get started?Download WordPress

Forums

Get category name from custom-type post (2 posts)

  1. dominokid
    Member
    Posted 2 years ago #

    Hello guys!

    My template uses custom type categories and posts for the portfolios. I want to fix the breadcrumbs at the portfolio page. The category is missing.

    I want to get the category name that the current portfolio item i'm viewing exists into.

    I'm very confused if i will use this code:
    <?php query_posts(array( 'post_type' => 'Portfolio','portfolio-category' => 'category-name' )); ?>

    Can anyone tell me the full code to do that?
    Thank you for your time! :)

  2. dominokid
    Member
    Posted 2 years ago #

    Do i have to replace the

    category-name

    with the real category name? I cannot understand how it works. I've read every possible article in the wordpress codex, but as far for the custom categories i can't find anything!

    [ Please do not bump, that's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic