Disable Jquery UI post tabs

****See edit history for previous comments*** I decided i’m going to write a plugin to do this, the plugin discussed i’m sure was written with the best intentions, but the code in my personal opinion needs a total rewrite, which is essentially what i’ll be doing. The aim will basically be to emulate the functionality … Read more

How to list users and their post amount?

WordPress has a wp_list_authors function with the option to list post count. <?php $args = array( ‘orderby’ => ‘post_count’, ‘optioncount’ => true); wp_list_authors( $args ); ?> EDIT: While it’s possible to do it the way you’re doing it and use count_user_posts(), this will trigger a query to retrieve users, then additional queries to get each … Read more

Adding footers to posts?

Here is a quick solution for you: on the page or post you want to add a post footer create a new custom field named post_footer and in the value add the footer content. then paste this code in your theme’s functions.php file add_filter(‘the_content’,`my_post_footer`,99); function my_post_footer($content){ global $post; $footer = get_post_meta($post->ID,’post_footer’,true); if ($footer){ return $content … Read more

Differentiate between posts and pages in search results

Try this… <?php //prevent this div from displaying for pages: if ( get_post_type() != ‘page’ ) : ?> <div class=”searchdate”><?php the_time(‘F jS, Y’) ?></div> <?php endif; ?> The is_page() conditional tag only checks if currently displayed content is a single page view. Nothing for you at this point. See http://codex.wordpress.org/Function_Reference/is_page

Pagination on single post page?

I know Twenty Eleven include this functionality by default and I’ve come to expect it as default behavior, so I hope I’m not missing something here. You should be able to add this to single.php by using the previous_post_link() and next_post_link() functions.