My custom title gets duplicated at every save or post update

First of: Your custom title suffix getting duplicated might not be what you want to happen, but is expected behavior as per your code sample. The save_post action hook runs everytime a post (or page) is created or updated. Hence your callback runs everytime. Let me offer two solutions: 1 Use the wp_insert_post action instead … Read more

How to extend the page editor?

I think the batter way is to use plugin. Check this : http://wordpress.org/extend/plugins/search.php?q=form&sort= I personally suggest you Contact Form 7 Just past form plugin short code in your page/post , that’s it ! Cheers !

Return $post_id when DOING_AUTOSAVE?

The ‘save_post’ action was added to core in 2.0, and has always been an action. Looking through the current autosave procedures, it doesn’t appear to call the ‘save_post’ action directly at any time. So the short answer is, no. There is no reason, and has never been any reason, to return any value on this … Read more

Metaboxes not saving data

There were three issues: The first wasn’t visible in the code presented. a wp_register_styles call was put into the constructor, which caused errors and somehow prevented saving post metadata. Second, the date field was a HTML5 date field, which conflisted with jQuery’s datepicker. Changing it to a text field fixed that. Third, the final if … Read more