Doubt with wp types

Asked

Viewed 54 times

0

I’m using WP Types for a product catalog site. I created categories, sub-categories and lines, all as custom post types and a daughter of the other, so that in the product registration, I select each item of these for him. However on the product page I cannot display the category name.

  • 2

    Welcome to Stackoverflow! Try to put the title of the question related to your question and not vague as it is currently. Try to be more specific in the body of the question and if possible put the code you have already done and where the problem is. See our [tour]

  • 1

    Hi, check this link: http://codex.wordpress.org/Function_Reference/wp_get_post_terms

1 answer

1

I use Types in a project. The categorization depends on how you set up the type structure, and how you named the taxonomy tag you will use. In my case, I used two category types.

Every time I want to display a type of them, I call it the Theme view:

<?php 
            global $wp_query;
            $term = $wp_query->get_queried_object();
            $title = $term->name;
            echo $title;
            ?>

Anything, just check the Types documentation at this link. They have a very good FAQ.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.