Prevent post from being published if custom fields not filled
I have a custom post type Event that contains a starting and ending date/times custom fields (as metaboxes in the post edit screen).
I have a custom post type Event that contains a starting and ending date/times custom fields (as metaboxes in the post edit screen).
i try to hook when post is updated but all hook i try never executed except updated_post_meta
I have a simple meta box that updates the post custom fields (using update_post_meta()).
Is it possible within the save_post action to determine whether it’s a new post being created or an existing post being update?
I’m surprised by the fact that my function that I’ve tacked onto the save_post action fires when I click the “New Post” link in the Admin Dashboard. Note – this is before I’ve pressed Save or Update, and it fires immediately, not after an elapsed time or auto-update.
I have a function that defines a custom field on a post type. Say the field is “subhead”.
I have been using this site alot for solving my problems, but this time I did not succeed in finding and answer for my problem.
We have a plugin that allows us to manage custom post types and we’d like to add AJAX functionality in saving, editing, and deleting posts. I couldn’t find similar problems in the internet so I’m wondering if this isn’t something easily doable?
I am using custom posts, and in these, I don’t a need for the title.
I’m looking for a way to check that a post has a minimum word count before allowing it to be sent for review (added to the pending post status).