php - Wordpress custom post status of "expired" -
i feel question has been asked before recent query of (custom post status not appearing) 2 years ago i'm wondering if has new information it.
looking make custom post status of 'expired' post can set using 'post status' dropdown in post editor , excluded search. if old link drives user it, can still see content given custom header of 'expired'.
any body have ideas?
the simplest way use custom fields. create key/value pair of expired => true/false.
you can retrieve value using get_post_meta , test add header required.
Comments
Post a Comment