0

I have a Custom Taxonomy of, "Show on Front Page". I would like only one post to be assigned to this. So if I went and created an new post and checked the "Show on Front Page", the previous post that had that checked would no longer be associated with that Custom Taxonomy.

Is this possible?

2
  • Instead of a taxonomy you should just use a variable and assign the post id to that variable. So what ever post id is assigned to the variable can then be shown on the front end. In my opinion, taxonomy is not for what you want to do.
    – sri
    Nov 20, 2013 at 15:58
  • Can you offer an example?
    – acrane
    Nov 20, 2013 at 18:27

1 Answer 1

0

Rather than trying to force an implementation as you've described it, doesn't it make more sense to change the WP_Query on the front page, to only show one post, regardless of how many posts are in the given taxonomy term?

1
  • That's actually exactly how I have it setup. It pulls from that tax and the most recent one. This is a request from the boss to cut down on confusion in the backend for the client. You know, if they see more than one "front page"
    – acrane
    Nov 20, 2013 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.