Title: Displaying post tags outside loop
Last modified: August 18, 2016

---

# Displaying post tags outside loop

 *  [alexlr](https://wordpress.org/support/users/alexlr/)
 * (@alexlr)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/displaying-post-tags-outside-loop/)
 * So I’ve been farting around with tags attached to my posts and I’m modifying 
   my layout so that it displays all that information on the side. However php the_tags
   only works when it’s inside the loop.
 * I did some searching and this [forum topic](http://wordpress.org/support/topic/135724?replies=10)
   had some code that worked for me, at least sort of.
 * It displays the tags in the sidebar, but they’re not clickable like the tags 
   inside the loop. Is there any way to add that functionality?
 * I’m no php expert so any help to nudge me along would be most welcome.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  [arickrol](https://wordpress.org/support/users/arickrol/)
 * (@arickrol)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/displaying-post-tags-outside-loop/#post-632435)
 * If you visit my blog, [http://wargamingforums.com](http://wargamingforums.com),
   you’ll see I have a tag cloud (with clickable links) in my sidebar and i did 
   this via a widget.
 * I learned this at: [http://richgilchrest.com/how-to-add-wordpress-23-tags-to-your-current-theme/](http://richgilchrest.com/how-to-add-wordpress-23-tags-to-your-current-theme/)
 * I hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Displaying post tags outside loop’ is closed to new replies.

## Tags

 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [arickrol](https://wordpress.org/support/users/arickrol/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/displaying-post-tags-outside-loop/#post-632435)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
