WordPress.org

Support

Support » How-To and Troubleshooting » Make categories for post_type

Make categories for post_type

  • I have this code:

    <br />
    foreach((get_the_category()) as $category) {<br />
    echo '<li class="cat-' .$category->cat_name. '"><a>term_id ).'">' . $category->cat_name . '</a>';}<br />

    And I need it to work for post type “articles”.

    Code: http://pastie.org/5125396

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Make categories for post_type’ is closed to new replies.
Skip to toolbar