Do I have to use categories?

You’re not obligated to use categories. The listing of categories is a function of the theme, you can edit your theme and remove that. Depending on the structure of your theme these may be in a number of places. You can search for instances of get_the_category and comment them out. Look for a file called … Read more

3 Columns, 3 Categories, One Archive, and Pagination

OK this is what I ended up with, that works well: // get paged value. $paged = get_query_var( ‘paged’ ); $maxPages = array(); $max = 0; // Create the queries $soundPosts = new WP_Query(‘posts_per_page=1&cat=4&paged=’ . $paged); $viewsPosts = new WP_Query(‘posts_per_page=1&cat=5&paged=’ . $paged); $wordsPosts = new WP_Query(‘posts_per_page=1&cat=6&paged=’ . $paged); // get max number of pages for … Read more

Taxonomy filter all children

This hooks into the update action for any post. It’ll copy all terms for a given set of taxonomies from a parent to it’s children. /** * Update all children of a post with the same terms as itself. * * @param int $post_ID * @param object $post */ function __update_children_with_terms( $post_ID, $post ) { … Read more

Specifying multiple categories in URL (permalink)?

Some folks asked the same question you did here. This one specifically worth reading, if you haven’t already. It has ottopress explanation for harmful permalinks. If you really want to force this, you could write your own permalink (http://domain.com/category/subcategory/post…), then either use htaccess rewrite rule or WP_Rewrite to take them to the link wordpress generated. … Read more

Ignoring a category in WP_Query still shows the links in next_post_link()?

You’ll have to exclude the category in your next_post_link and previous_post_link calls too, as it’s using the posts data, not your specific queries data, so, this should fix it: while ( $homepage->have_posts() ) : $homepage->the_post(); next_post_link( ‘« %link’, ‘%title’, false, ‘5’ ); previous_post_link( ‘%link »’, ‘%title’, false, ‘5’ ); endwhile; Where 5 is the excluded … Read more

How to display posts under a specific subcategory of a given category

It should be enough to do this: query_posts( ‘posts_per_page=10&paged=’.$paged.’&post_type=publication&publication_category=’.$subcat ); If you look at your original code you can see why you went wrong by looking at what you are literally asking in your arguments: I would like posts that are in the main category but are in the child category. When what you want … Read more