WordPress.org

Forums

Tag Pages
[resolved] Tags don't display on WP pages (3 posts)

  1. pixelrage
    Member
    Posted 1 year ago #

    Hello, I'm trying the following code within the body area of my Pages (these tags need to appear in a very specific place) after installing your plugin:

    <?php the_tags('Tags : ', ', ', '<br />'); ?>

    ...however, nothing shows up. Am I doing something wrong with this code? I can't figure out why it wouldn't work.

    Thanks

    http://wordpress.org/plugins/tag-pages/

  2. BjornW
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Pixelrage,

    Sorry for the late reply.

    I'm not sure if I understand you correctly: you have placed the code below in your page content?

    <?php the_tags('Tags : ', ', ', '<br />'); ?>

    This is not working because you normally can't directly use PHP (that's the code) in your page content. You can use PHP in your theme's templates, this is easier if you always want to display the tags at a certain location in your pages.

    If you only want to display the page's tags occasionally you may have to look for a plugin which offers a shortcode (which can be used in your content) to do so.

    I hope this helps, otherwise feel free to contact me again using this forum.

  3. BjornW
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Pixelrage,

    I presume your question has been answered since I haven't heard back from you. Therefor I will close this thread. If you have any other questions, remarks or suggestions feel free to open a new thread.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Tag Pages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.