Listing Parent, Child and GrandChild Categories and then the PostTitles on Page Template !

This would be the way I’d do it. Add the following to your functions.php; class Walker_Category_Posts extends Walker_Category { function start_el( &$output, $category, $depth, $args ) { parent::start_el( $output, $category, $depth, $args ); if ( $category->parent ) return $output; if ( $posts = get_posts( ‘posts_per_page=-1&no_found_rows=1&update_term_cache=0&cat=” . $category->term_id ) ) { $output .= “<ul>’; foreach ( … Read more

How to dynamically build a multiple taxonomy query loop within a post type’s single loop?

As per comment I also see some trouble understanding album and album media essence. You are also mixing up terminology a bit with terms and taxonomies (term is item in taxonomy). So I am going to focus on your summary and leave to you how to put parts together: multiple taxonomy query – taxonomy queries … Read more

Editing the loop for Author pages

If your Parent Theme, has a template file loop-author.php, copy it to your Child Theme; otherwise, copy your Parent Theme’s loop.php template file to your Child Theme, and rename it as loop-author.php. Now, modify your Child Theme’s loop-author.php template file, in whatever way you wish. You don’t need to make any other changes, either to … Read more

WP_Query to get posts in a specific category and post format

Two problems i see: change aside to post-format-aside and since you are using foreach loop change new WP_Query( $singargs ); to get_posts( $singargs ); so your code sould look like this: <?php $singargs = array( ‘numberposts’ => 1, ‘tax_query’ => array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, ‘terms’ => array ( … Read more

List posts AND custom post type by category

I found this answer on the WordPress forum to be of help: http://wordpress.org/support/topic/custom-post-type-posts-not-displayed?replies=5#post-2805344 basically, the poster references a post by Justin Tadlock (who is pretty much an authority in WordPress theme and plugin desing by the way. Follow his blog if you want to get savvy on WordPress.) http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page In his blog post he provides … Read more

Paginated HTML Sitemap

Haven’t tested this, but here you go, lemmie know how it works. You’ll needa do your own pagination links, but that should be pretty straightforward //pagination $offset=”0″; $no_of_posts = the_posts_per_page( false ); //Number of posts to display on each page if (preg_match( ‘/page/’, $_SERVER[‘REQUEST_URI’] ) ) { $uri = explode( “https://wordpress.stackexchange.com/”, $_SERVER[‘REQUEST_URI’] ); foreach ( … Read more