Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?

Short answer: no. Shortcodes are for injecting content directly in the Post Content, by the user, via the Post Edit screen. If your data are coming from a metabox, you have other, better, more efficient, and easier-to-control means of injecting content into the Post Content: primarily, the the_content filter (for general usage), or custom action … Read more

query in category.php repeats itself

You should take the condition outide the loop meaning above <?php if (have_posts()) : while (have_posts()) : the_post(); ?> Therewise every time the loop begins it start the check instead of doing the check then starting the loop if the condition exist. Its hard for to understand because i dont understand div names but i … Read more

Extra option in editor

Maybe this tutorial will help you. EDIT: some code in case the original source gets lost. 1st) Add the meta box to all the post types we need function wpse31877_add_custom_meta_boxes() { foreach ( array( ‘post’, ‘page’ ) as $post_type ) { add_meta_box( ‘wp_custom_attachment’ ,’Custom Attachment’ ,’wpse31877_custom_attachment’ ,$post_type ,’side’ ); } } add_action( ‘add_meta_boxes’, ‘wpse31877_add_custom_meta_boxes’ ); … Read more