Support » Fixing WordPress » Get category name from custom-type post

  • 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! 🙂

Viewing 1 replies (of 1 total)
  • Do i have to replace the


    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. ]

Viewing 1 replies (of 1 total)
  • The topic ‘Get category name from custom-type post’ is closed to new replies.