Show different sidebar on taxonomy pages when a default is set

Why don’t you simply create a new sidebar… It will be clearer for you and will lighten your sidebar.php. Create a file in your theme folder : sidebar-thenameyouwant.php put your sidebar code there like this ex : <div id=”secondary”> <?php dynamic_sidebar( ‘sidebar-xyz’ ); ?> </div><!– #secondary .widget-area –> in your themes function.php… add : register_sidebar( … Read more

How can I define the RSS feed content length?

I usualy make a RSS feed in my template. Just copy the RSS feed you have in the wp-include/feed-rss2.php Step two is registering it instead of the original: // override feeds function own_rss( $for_comments ) { //it is in my theme/feed/rss2.php $rss_template = get_stylesheet_directory() . ‘/feed/rss2.php’; if( file_exists( $rss_template ) ) { load_template( $rss_template ); … Read more

How to turn custom-post archive into an overview page, listing the metadata of the posts?

In Taxonomy.php (Create on if have none) in your template folder You should have something similer to this code: (taxonomy are similer to archive.php but used for custom post type) <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!–=== TO GET THE TAXONOMY TITLE ===–> <h1><?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( … Read more

WordPress theme options tabs

WordPress includes many js libraries in \wp-includes\js and in wp-admin\js. You can browse through them and choose which one you want, including jQuery tabs. You can use it in your theme by using this function, http://codex.wordpress.org/Function_Reference/wp_enqueue_script To figure out how to use the tabs, you would read about it here: http://jqueryui.com/demos/tabs/