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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -