Forums

if post-category == x, do y (possible?) (2 posts)

  1. Ricky
    Member
    Posted 4 years ago #

    I would like to know if it's possible to write this in PHP with WordPress:

    If post-category == 'hotlinks', then preface post-title with '[Hotlinks] '

    To understand why I want to do this, you can see my website, http://www.dressedinvalue.com. I have a 'hotlinks' section, which is also in the main feed (on homepage). I want to set it so, if you're on the Hotlinks page, you don't see "[Hotlinks]" on every title. So, if there was a way to preface hotlinks-posts on the homepage, that'd be great.

    Let me know if this is confusing and doesn't make sense.

  2. Ricky
    Member
    Posted 4 years ago #

    Maybe there is a way to dynamically remove '[Hotlinks] ' from the post title if it appears on the homepage?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.