Forums

[resolved] How to add tags under the post (22 posts)

  1. jvazjr
    Member
    Posted 2 years ago #

    when i add a post, i dont see the tags and the comments under the blog post

    i only see the tags in the sidebar

    can someone help please??

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Might want to look at how the WordPress Default theme's wp-content/themes/default/index.php makes use of Template Tag, the_tags() and comments_popup_link() to display those two items.

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

  3. jvazjr
    Member
    Posted 2 years ago #

    i dont know where to find the tag section in the template

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Did you find the_tags example in the WordPress Default theme's index.php?

  5. jvazjr
    Member
    Posted 2 years ago #

    i did but i dont know where to change the post tags on my template

  6. MichaelH
    Volunteer
    Posted 2 years ago #

    You would need to provide a link to download the theme you are using.

  7. jvazjr
    Member
    Posted 2 years ago #

    here is my blog

    theinternetmarketer.jvazjrsblog.com

    i want the tags to show up below the post

  8. MichaelH
    Volunteer
    Posted 2 years ago #

    Please paste all the code from the theme template file (probably index.php) that is displaying those posts into a pastebin, such as wordpress.pastebin.ca, and report the link back here. Maybe someone might spot your problem. Thanks.

  9. jvazjr
    Member
    Posted 2 years ago #

    all i want to know is where can i find the code to change so that the tags show up below my posts??

  10. MichaelH
    Volunteer
    Posted 2 years ago #

    Please provide one of these two things:

    a link to download the theme you are using

    or

    paste the contents of your theme's index.php in a pastebin and report the link back here.

    Thanks.

    Or review some of these threads:
    http://wordpress.org/search/the_tags?forums=1

  11. jvazjr
    Member
    Posted 2 years ago #

  12. MichaelH
    Volunteer
    Posted 2 years ago #

    Without test this, in your theme's index.php
    change this:

    <?php the_content('Read the rest of this entry &raquo;'); ?>

    to this:

    <?php the_content('Read the rest of this entry &raquo;'); ?>
    <?php the_tags(' ', ', ', '<br />'); ?>
  13. jvazjr
    Member
    Posted 2 years ago #

    it worked but i dont see the word tags before the tags

  14. MichaelH
    Volunteer
    Posted 2 years ago #

    Did you get a chance to look at any of the links provided above, in particular the_tags() link?

  15. jvazjr
    Member
    Posted 2 years ago #

    i did look at them but when i tried some of the techniques, they did not work

  16. MichaelH
    Volunteer
    Posted 2 years ago #

    So this example from that article didn't work?

    <?php the_tags('Tags:', ', ', '<br />'); ?>
  17. jvazjr
    Member
    Posted 2 years ago #

    now i got it

    also, how can i get rid of the tag widget in the sidebar

  18. MichaelH
    Volunteer
    Posted 2 years ago #

    Please start another topic with that question.

  19. jvazjr
    Member
    Posted 2 years ago #

    ok

    thanks for your help

  20. sergibosch
    Member
    Posted 2 years ago #

    MichaelH, i'm impressed by how effectively you and jvazjr worked to resolve his/her issue.

    can you do me a huge favor and help me out with my question? it's been posted forever and i haven't gotten any answers.

    essentially, whenever i go form MAMP build to live build, if i simply import my local mySQL db into my live one (after dropping the tables on the live one), all my links are broken. for example, they'll always be "http://localhost:8888/site" -- which of course won't work when i go live.

    here's a link to that question: http://wordpress.org/support/topic/166925?replies=4#post-1012970

    thank you!

  21. goblank
    Member
    Posted 2 years ago #

    My blog its Foto Cewek is also have a same problem. Event i adding codes

    <?php the_content('Read the rest of this entry »'); ?>
    <?php the_tags(' ', ', ', '
    '); ?>

    its still no work, actualy my standar wordpress template its not adding such as the code. i try to put the solving code is still none tags, Please help, because i dont wanna changes my template.

    Thanks

  22. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    so...where did you add the code?
    in index.php you should already have this:
    <?php the_content('Read the rest of this entry ยป'); ?>
    or something similar like:
    <?php the_excerpt(); ?>

    So under that line of code (or possible somewhere else depending where you want your tags to show up) you add:

    <?php the_tags(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.