Home Forums Newsletter Plugin Support Display Taxonomy terms

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9999
    wpchef
    Participant

    Hi Stefano,

    is it possible to display the taxonomy term associated to a custom post type ?

    Thank you.

    Dimitri

    #10002
    Stefano
    Keymaster

    You need to create a custom Newsletter theme and look at how they can be extracted with the WordPress templates functions.

    #10005
    wpchef
    Participant

    I’ve done it. In the preview mode I can see them displayed but when I switch to “editing mode” they are “stripped out”…

    this is the code I use to call them

    <?php $terms = wp_get_post_terms($post->ID,'section');
     $count = count($terms);
     if ( $count > 0 ){
        
         foreach ( $terms as $term ) {
           echo  $term->name ;
    		 }
    		
    	 }?>
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.