Hi, yeah.. where is published/unpublished information stored in the database?
Is there a wp function that returns whether a post is published or not that I can use in my plugin?
Hi, yeah.. where is published/unpublished information stored in the database?
Is there a wp function that returns whether a post is published or not that I can use in my plugin?
globalize the $post variable and use $post->post_status to determine the status of the post.
$status = get_post_status(get_the_ID());
This topic has been closed to new replies.