How to get the taxonomy values of a custom post type

前端 未结 4 1895
清歌不尽
清歌不尽 2021-02-05 22:44

I am creating a new template that will get all the custom post type (Case Studies) content, including the taxonomies values associated with it.

So far I got the follow

4条回答
  •  花落未央
    2021-02-05 23:33

    Just in case if it could help someone, I used "the_taxonomies()" function inside a loop of a custom post type.

            
    
            //html
            //and stuff
    
            
    
            
    
    
     the result was:
    
       Taxonomy-name: {Taxonomy-term}. <-- as a link
    

提交回复
热议问题