Pagination stays on same page for post category

query_posts = _your_doing_it_wrong as soon as you throw in that nasty query_posts you are killing off all the global variables and your paging will not work. change: query_posts( array( ‘post_type’ => ‘fieldtrips’, ‘fieldtripcategory’ => ‘elementary-school-aquifer’, ‘order’ => ‘ASC’, ‘posts_per_page’ => 1 ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); to: … Read more

Show different size featured images (the_post_thumbnail) for 1st, 2nd and 3rd posts?

Just use the $count variable that you are incrementing: <?php $count = 0; $some_featured_posts = new WP_Query(array(‘category_name’ => ‘apps’, ‘posts_per_page’ => 5)); while ($some_featured_posts->have_posts()): $some_featured_posts->the_post(); $count++; if( $count <= 2 ) the_post_thumbnail( ‘large’ ); elseif( 3 == $count ) the_post_thumbnail( ‘medium’ ); else the_post_thumbnail( ‘thumbnail’ ); endwhile; wp_reset_postdata(); ?>

Post ID wrong in Functions.php

Try this: function filter_pagetitle($url) { global $post; return $post->post_title; } add_filter(‘wp_title’, ‘filter_pagetitle’);

Dynamically generating an ” reference with PHP

I am not entirely sure what you are asking, but if you need a unique identifier based on posts created in WordPress, then use the post ID. Every post type is saved into the same table in the database so posts, pages, and custom post types will never have conflicting IDs.

Most viewed posts in WordPress

http://www.catswhocode.com/blog/super-useful-wordpress-hacks-and-snippets You source? I made a widget that does just that, on this same code. To sort: <?php $args = array( ‘post_status’ => ‘publish’, ‘meta_key’ => ‘post_views_count’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ‘ASC’ ); $the_query = new WP_Query($args); //http://codex.wordpress.org/Class_Reference/WP_Query //the loop while ( $the_query->have_posts() ) : $the_query->the_post(); //do your magic endwhile;