WordPress.org

Ready to get started?Download WordPress

Forums

Another anoying comments question :) (3 posts)

  1. Murry
    Member
    Posted 9 years ago #

    Hi - I hope this phase wont last long.
    I woul;d lke to remove the "edit"and "comment" links at the end of posts - ONLY for specific categories.
    Is there a tag i can put in archive.php or something??
    Ive been commenting out the php link section in archive.php - but that hits all of them. Im sure this is easy - its just been a looong day.
    Thanks ever so much.

  2. moshu
    Member
    Posted 9 years ago #

    1. You see the "edit" only because you are logged in. Otherwise is not there for the rest of the world :)
    2. When you click an "archive link" (like month name, calendar) then WP uses the archive.php (a.k.a. archive template) to display the posts. It has one Loop which will define how the posts are displayed = what template tags are used, including the call for Comments, no matter in which category they are.
    2a. However you can have a different view if you click on a "category link", like a category name, and if your theme has a category template (or more for different categories) then you can have a different display for that.

    I know ate the beginning this whole "template thing" sounds confusing :)
    My advice: open the Template Hierarchy in the Codex and in the same time follow my Visual Anatomy and you'll see better which template kicks in for different views :)

  3. Murry
    Member
    Posted 9 years ago #

    Moshu - thanks for that link - It was probably more useful than the days of reading cross referenced Codex. helps a great deal

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.