Getting page tags to show on your WordPress pages

Wednesday, 24 March 2010 - 12:23 pm - by ram

A number of users of Page Tagger have emailed in asking how to get their page tags showing on their pages. So I thought I’d put up a short blog post on how to do this.

Once you’ve happily tagged your pages using Page Tagger you need to edit your theme’s page.php template. This is the template which gets used by WordPress whenever you view a static page (as opposed to a blog post) on your site. Inside this file you should have a section resembling “The Loop”:

<? php if (have_posts()) : while (have_posts()) : the_post(); ? >
...
<? php endwhile; endif; ? >

Inside this section you need to place a call to the the_tags() template method. This will output your page tags at that spot with some default formatting. Read the documentation for the_tags() for information on changing how it works. You can also use alternative functions such as get_the_tags()or get_the_tag_list() to achieve a similar effect.

If for some reason your page tags still aren’t showing on your page then please get in touch as it maybe a bug in the Page Tagger plugin.

Tags:   ,
  • Jussi

    Hi!

    I gotta question for you, mate:
    http://wordpress.org/support/topic/409052

    Cheers!

  • Joe

    could you please add this to the wordpress.org plugin page. took me quite some time to find ths page.
    thx for the plugin!

  • Lempo Soi

    Hi,

    This plugin was just what I was looking for and it works just fine, but I don't suppose there's a way to make the tags appear at the end of the post, rather than the top?

  • http://hiddentao.com/ Ram

    @LempoSoi:disqus Do you have access to editing your theme's single.php file? If so then you just need to add a call to http://codex.wordpress.org/Fun… in there near the end of the poist where you want them to show. And remove the call from the near the top.
    That will fix it for when you a view a post on its own page. For the blog view (where you have many posts showing) you will need to edit the index.php file and do the same there.

  • Lempo Soi

    Thanks so much, works beautifully!

  • Zarkas

    Thanks, but it doesn’t look like it saves the tags I add on a page.

  • http://hiddentao.com/ Ram

    What version of WordPress are you using? I’m running 3.1.3 and tagging is definitely working for me.

  • Marc

    Hello, the page tags do not appear in the tag cloud widget ?! I use WP 3.2.1 + Page Tagger 0.3.6

  • http://hiddentao.com/ Ram

    Hey Marc, note that the tag cloud is limited to the 45 most popular tags by default, see http://codex.wordpress.org/Function_Reference/wp_tag_cloud. It definitely does show page tags, as you can see in my tag cloud on the right (e.g. my “About” tag is only used against one page and no posts).

  • Brian

    Hi. I’m using Page Tagger with WP-Cumulus. I want it to go to the page with the tag, and not as now to a page with a summary. Is that possible ? http://www.boeconsult.dk

  • http://hiddentao.com/ Ram

    Hi Brian, the tag links are generated by WordPress itself. By default it produces a listing of all posts and pages tagged with that tag, similar to how search results would appear. What you can do is change the tag results template to show the full post body rather than just a summary.

  • Paul

    Hi I added your plugin to my site, but I’m not sure from your description what I have to change in page.php. (Being not very code-literate). 

  • Paul

    Hi I added your plugin to my site, but I’m not sure from your description what I have to change in page.php. (Being not very code-literate). 

  • Rambo

    Hi mate I’d recommend following the link to “The Loop” in the post to understand how the template works.

  • Dan

    Is there anyway to stop the plugin from changing my new tag format to an old one I used before?  For example, at first I capitalized the first letter of the tag but then decided that I want to use all lowercase letters.  However even after retagging the page with lowercase letters it reverts to the old tag with the capital letter.  Tryed looking in the database to manually remove the tags but couldn’t seem to find what I was looking for.

    Any ideas?

  • http://hiddentao.com/ Ram

    Hmm. The database table which stores tags is (I think) wp_terms. Have you tried looking there?