Tag Info

New answers tagged

0

You need to check to see whether the $_POST data contains your custom field information before saving it: if (!empty($_POST["intro"])) { update_post_meta($post->ID, "intro", $_POST["intro"]); } Also, Wordpress will pass the post ID and post object into your callback if you ask it too. function save_intro($ID, $post){ //preserve the data in the ...


0

I have managed to find the reason behind this and create a solution suitable for my needs. Under screen options on the post edit page is an option called "Custom Fields". This lists all of the custom meta values that have been saved against the post and allows you to create new ones and edit existing. When opening the post to edit, the view count at that ...



Top 50 recent answers are included