[wp-hackers] setting category on publish

Filippo Pisano filippo.pisano at gmail.com
Fri Jul 20 15:08:06 UTC 2012

Hi Kirk,

you can add a hook to post publish action to add the correct terms to the
post being published.


On Fri, Jul 20, 2012 at 4:59 PM, Kirk Wight <kwight at kwight.ca> wrote:

> Is there a way to assign a category to a custom post type upon its
> scheduled publishing?
> We have an online magazine that is scheduled to be live (published) at
> midnight. What shows on the front page, though, is dependent on which issue
> (custom post type) is assigned the category "current issue". This means the
> category would have to be removed from one issue and applied to the new
> issue when the new issue's publish time occurs.
> Any ideas very much appreciated!
> Kirk
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list