Post edit screen: How to check if meta_box is registered?

Check the metabox global directly? $wp_meta_boxes[‘YOURTYPE’] should hold data on metaboxes for a given type. Had a quick look in wp-admin/includes/template.php but i can’t see any convenience functions for extracting metabox information from the array so you’ll probably need to create your own code to loop over or extract the necessary info from it. Of … Read more

How to add a textarea to only one of the fields of this custom metabox?

Modify your array definition with something like this to add a new element of the array that specify the type of the field “project_overview” => array( “name” => “project_overview”, “title” => “Overview”, “description” => “Write an overview of the project.”, “type”=>”textarea”) Then in your code substitute <input type=”text” name=”<?php echo $meta_box[ ‘name’ ]; ?>” value=”<?php … Read more

Custom meta box data in rss feed

Ok I got it // Add the audio link to the feeds so we can podcast function feed_customMeta($content) { global $post, $id, $radioMeta; if ( !is_feed() ) return $content; $getRadioLink = ‘<a href=”‘.$radioMeta->get_the_value(‘radioLink’).'”>Download Audio</a>’; if( $getRadioLink) $content .= $getRadioLink; return $content; } add_filter(‘the_excerpt_rss’, ‘feed_customMeta’); add_filter(‘the_content_feed’, ‘feed_customMeta’);

How to display multiple $meta_boxes into separate tables

The Problem is in your ri_display_metaboxes() function more specifically this line: foreach ($meta_boxes as $meta_box) { Which tells WordPress to render both/all metaboxes on every single metabox display callback. to get over it you can use the $callback_args parameter of add_meta_box function so try this: function ri_add_custom_box() { global $prefix, $meta_box, $meta_boxes; $prefix = ‘_ri_custom_meta_’; … Read more

Custom loop attached to link

Something like this: Make an URL like /companies/?leaders Than in your archive template (top): if(isset($_GET[‘leaders’])) { global $query_string; $query_string = $query_string . ‘&meta_key=leaders&meta_value=yes’; query_posts($query_string); } Hope this helps.