Useful WordPress Plugin: Category Order and Taxonomy Terms Order

taxonomyorder Category Order and Taxonomy Terms Order is a powerful plugin to re-order categories and all custom taxonomies terms using a drag and drop capability. The best thing about this plugin, we don’t need to change theme code just to re-order categories and taxonomies, the plugin will do it for us. Just drag and drop category or taxonomy terms, voila! this plugin sort this out without any programming to theme files.

If multiple taxonomies are created for a custom post type, a menu will allow to chose the one need sorted. If child categories (terms) are defined, those can be order too using the same interface

 

WordPress: Shortcode in Custom Field


Normally wordpress does not run shortcode that you put into a custom field. By default, Custom Fields display whatever value you enter, as plain-text, so if you try entering a shortcode, (in the format [shortcode] VALUE [/shortcode]) you’ll end up displaying the entire text, including the tags.

Add the following in your template file, it can be single.php or page.php or else

echo apply_filters('the_content', get_post_meta($post->ID,'your_custom_field',true)); 

or

$shortcode=get_post_meta($post->ID,'your_custom_field',true);
echo do_shortcode($shortcode); 

WordPress: Disable All Shortcodes from the_content


The following code snippet will remove ALL shortcodes from the_content
Add the following code snippet to the functions.php of your theme

function remove_shortcode_from_index($content) {            
$content = strip_shortcodes($content);          
return $content; 
} 
add_filter('the_content', 'remove_shortcode_from_index');  

You can disable shortcodes from particular page, e.g Home Page

function remove_shortcode_from_index($content) {     
if ( is_home() ) {         
$content = strip_shortcodes($content);     
}     
return $content; 
} 
add_filter('the_content', 'remove_shortcode_from_index');  

WordPress : Remove Podpress code from the_excerpt

Add the following to functions.php

add_action('pre_get_posts', 'remove_podpress_from_automatic_excerpts');
function remove_podpress_from_automatic_excerpts() {
	/* This function removes podPress elements from post content on the homepage of the blog. It helps especially if the home page shows only excerpts of the posts.*/
	if ( is_home() ) {
		global $podPress;
		if ( TRUE=== isset($podPress) AND TRUE === is_object($podPress) ) {
			remove_filter('the_content', array(&$podPress, 'insert_content'));
		}
	}
}