Category links including all posts

The <?php query_posts(); ?> in your code is causing the global query to be reset to show all posts instead of the one set by your rewrite rules. You should remove that line.

Output loop to function return?

First, need to lose query_posts() – it should never be used for secondary loops. Try something like this: $posts = get_posts( array( ‘cat’ => $category->term_id, ‘numberposts’ => 3, )); foreach( $posts as $post ) { $listing_code .= get_permalink( $post->ID ); //or whatever }

looping though custom post types and only return results in a given taxonomy

Check the documentation here: http://codex.wordpress.org/Function_Reference/WP_Query#Taxonomy_Parameters You’ll want to add this to your wp_query: ‘smash-palace’ => ‘smash-palace’ In other words, your new query would look something like: $loop = new WP_Query( array( ‘post_type’ => ‘videos’, ‘artists’ => ‘smash-palace’, ‘post_child’ => 0, ‘posts_per_page’ => 5 ) ); EDIT: I answered this question under the assumption that “Smash … Read more

Stomping WP_Query in author archive to facilitate pagination with custom queries

t31os says: [See edit history for previous code and comments] Using Ajax to paginate your queries I’ve put together some code that will fetch your posts and comments via ajax using simple prev/next navigation via ajax. 1) Replace all the code you posted in your author.php with the following.. <?php $cat_settings = array( ‘Articles’ => … Read more