WordPress.org

Ready to get started?Download WordPress

Forums

Change category based on time or date (1 post)

  1. djliquifi
    Member
    Posted 6 years ago #

    Hello,

    What I want to accomplish is being able to expire posts that show in an event-list, yet still display them as a different status (i.e. past events)

    I came up with the idea of changing the category of a post based on a date set as a custom key. The date controls when a post expires and when this occurs, the category should change from event to past event.

    I am using postlists to be able to display events under one page. This is fine if the event hasn't happened yet, but if it has passed, I want to be able to mark it as a different category (past events) and i'll toss some code in there to show its a past event based on the current date.

    I currently do this manually. Would be nice to do this automatically.

    What is the best way to go about doing this? I searched for plugin's to accomplish what I am trying to do but no luck. Any help would be greatly appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic