how to have custom post template including custom write panels for the users to post

Maybe scribu‘s Front end Editor would be an easy way to update your website if your client finds the WP admin to be “confusing and difficult“. But also bare in mind that the admin is customizable through admin themes, as well as various scripts and plugins. To cite only one plugin, try Adminimize, it will … Read more

Extra richtext admin textfield for custom posttype with toolbar tabs?

Maby you should use the wp_editor instead? Then you have more control of the editor. An example if you have a meta box called “myfield” in the custom post type. If you want a simple editor you can do like this: echo ‘<form action=”” method=”post” target=”_blank”>’; wp_editor(‘<p>Some content</p>’, ‘myfield’ ); echo ‘<input type=”submit” value=”Submit” /></form>’; … Read more

How to add convenient buttons for new custom post statuses

There is a work tool set that works nice for this kind of add on, called CMB2. You can add all the fields and buttons you want as part of a metabox series. Metaboxes are what make up the admin section section of wordpress. https://wordpress.org/plugins/cmb2/ For example..a snippet: function custom_post_status() { register_post_status( ‘spam’, array( ‘label’ … Read more

Custom “radio button meta box” not saving correctly

The error is in you saving function where you are looking for $_POST[‘meta_box_musicreleases_linktype’] which is never set and should actually be $_POST[‘linktype’], and the use of wp_kses is not right here, if you want to validate the data and you know all of the accepted values the you can simply use in_array try: add_action( ‘save_post’, … Read more

How to remove wp panel for users

First of all, you should never use current_user_can function with roles. You should use only capabilities as params, as Codex clearly states: While checking against particular roles in place of a capability is supported in part, this practice is discouraged as it may produce unreliable results. So, if we’ve dealt with that major issue… There … Read more

How to add some custom HTML to the edit posts page

As found here: http://codex.wordpress.org/Function_Reference/add_meta_box /** * Calls the class on the post edit screen */ function call_someClass() { return new someClass(); } if ( is_admin() ) add_action( ‘load-post.php’, ‘call_someClass’ ); /** * The Class */ class someClass { const LANG = ‘some_textdomain’; public function __construct() { add_action( ‘add_meta_boxes’, array( &$this, ‘add_some_meta_box’ ) ); } /** … Read more