Support » Fixing WordPress » Getting Tags For A Specific Post?
4 years ago
A quick question: is there a way to get the tag list for a particular post? In the get_the_tag_list function, I don’t see a way to actually set the post to generate tags for.
The reason I ask is I’m trying to pull the parent post tag list for use in attachment pages. So in practice:
Would display the tags of:
Twenty-Five Hilarious Reaction GIFs
try working with http://codex.wordpress.org/Function_Reference/get_the_term_list
‘taxonomy’ would be ‘post_tag’
Perfect, thank you so much! For those of you interested, this is what worked for me:
<?php echo get_the_term_list($post->post_parent, 'post_tag', '<ul class="wp-tag-cloud">
[Please wrap all code in backticks]