Add a panel to edit post
What you’re looking for is a meta box. There’s a decent example on the Codex page, or try looking up tutorials. Here’s a very good one: http://wptheming.com/2010/08/custom-metabox-for-post-type/
What you’re looking for is a meta box. There’s a decent example on the Codex page, or try looking up tutorials. Here’s a very good one: http://wptheming.com/2010/08/custom-metabox-for-post-type/
If you are using the body_class() function, a class admin-bar will be added automatically when the admin bar is active. For example: <body class=”home blog logged-in admin-bar”> You can then use that class in your CSS to specify specific rules: .admin-bar .Div1 { /* custom styles */ }
You are using add_options_page() so this means that you are adding a page menu item under settings section of your WP admin menu. By the sounds of it you dont want to add your page there but you really want it to appear as a sub page of the pages menu. Am I correct in … Read more
You don’t need a rewrite rule in .htaccess to add www back in. Remove the rewrite rule, remove all the defines in wp-config and try to login. If that doesn’t work, delete permalinks in .htaccess to force them back to default. After you’re in, add the www in Dashboard>>Settings and save. Then reset permalinks.
You can use this in your functions.php : function add_admin_scripts( $hook ) { if ( $hook == ‘post-new.php’ ) { wp_enqueue_script( ‘myscript’, get_bloginfo(‘template_directory’).’/js/myscript.js’ ); } } add_action(‘admin_enqueue_scripts’,’add_admin_scripts’,10,1);
you can use simple one liner with remove_post_type_support() : remove_post_type_support( ‘post’, ‘editor’ );
You can use the built in ThickBox to display the popup by Ajax: //first add thickbox to your page function add_thickbox(){ if(is_admin() && (isset($_GET[‘page’]) && $_GET[‘page’] == “my-plugin-file.php”) { wp_enqueue_script(‘jquery’); wp_enqueue_script(‘thickbox’,null,array(‘jquery’)); wp_enqueue_style(‘thickbox.css’, “https://wordpress.stackexchange.com/”.WPINC.’/js/thickbox/thickbox.css’, null, ‘1.0’); } } add_action(‘wp_enqueue_script’,’add_thickbox’); //then in your user list for each user you add the thickbox //popup on the onclick and … Read more
Do you will use default elements of WP for your custom development, right? Than is this plugin maybe an helper: https://github.com/bueltge/WordPress-Admin-Style
Update As the Answer wasn’t best practice, I replace it with a link to my simple plugin that even does more than the OP needed. You can take it as reference on how to (re)move different things in the admin UI. It’s freely available Open Source Software. I encourage you to fork it. Functionality The … Read more
Something like this looks ot be what you are after http://wordpress.org/extend/plugins/rich-text-tags/