• Resolved laurymdragon

    (@laurymdragon)


    Hi, I’m quite new at this. I recently started moving my comics from a googlepages site to WordPress, and marveled at the possibility to use tags.
    However, the posts themselves don’t display the tags I’ve applied to them. A quick search gave me no result as to how to change this, and I’m not even sure if I know what exactly to look for.

    Can anyone help me?

Viewing 8 replies - 1 through 8 (of 8 total)
  • @laurymdragon – You’ll need to either edit your blog theme or have someone do it for you. When WordPress displays each of your posts, it loops through all of the information they contain and writes it to the screen based on your theme’s instructions. If your theme isn’t asking for the tags, they won’t display.

    I’d recommend asking on http://jobs.wordpress.net for someone who’d be willing to add tags to your theme (or try looking for a theme that supports tags already).

    Thread Starter laurymdragon

    (@laurymdragon)

    I’ve done some editing to the theme’s code I already have, but I can’t find the bit of code to add for that specific… function I want to add to posts, nor where I should write it in the stylesheets =/ I’ll look on the other website though, thanks 🙂

    add
    <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
    where you want to show the tags (has to be in the ‘loop’) –
    http://codex.wordpress.org/Template_Tags/the_tags

    Thread Starter laurymdragon

    (@laurymdragon)

    Yeah, I found that already. But where do I put it in the coding so it displays the applied tags on a post?

    learn from the basics – look into single.php of the default theme for instance, and see how he did it 😉

    Thread Starter laurymdragon

    (@laurymdragon)

    …and if MY theme doesn’t have a single.php file? =/ I wouldn’t be able to apply it?

    use your index.php – same thing

    Thread Starter laurymdragon

    (@laurymdragon)

    Perfect – it works 🙂 Not only that, but I also managed to find the code for something else I wanted. Thank you very much, and a happy new year 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘How to display tags in posts?’ is closed to new replies.