If you are having issues with Gutenberg editor, please simply download official Classic editor plugin.
Haven't found you're looking for? Visit goodstore howto web

Custom Type Category Label

  • Hi you sent me this code

    <?php
    echo '<span class="categories">';
    $terms = get_the_terms( get_the_ID(), 'event-categories' );
    if (isset($terms[0])) {
    echo '<a href="' . get_category_link($terms[0]->term_id) . '">' . $terms[0]->name . '</a>';
    }
    echo '</span>';
    ?>

    Which would add a category label on each image for custom-type event, but it doesn't work.. I create the content-event.php page and change the get metacategory to the above code but nothing is displayed

    Sorry to bother you but can you help me thanks
  • All following comments are shown for registered users only!

    (6 more comments)
This discussion has been solved.
All Discussions