How can I modify this blog loop to display custom post type posts?

Modify your code to use the correct query_posts call. Use query_posts(‘post_type=portfolio&offset=” . $offset); instead of query_posts(“offset=” . $offset); Below is your code modified: <?php /* Template Name: 2 Column Blog Template */ get_header(); ?> <section class=”container”> <!– 960 Container –> <?php $counter = 1; //start counter $grids = 2; //Grids per row global $query_string; //Need … Read more

Associating post id with its post type

If there’s no significant reason that you can’t do the queries separately (putting each type into its own div), then show and hide the divs based on the user input, then that might be a significantly simpler solution to code. That way, you’d be doing simple queries, not trying to bunch them all together and … Read more

Display by tag from different post types

may i suggest you use instead get_posts()? example $args_t10 = array( ‘tag_id’ => 10, ); $postslist_t10 = get_posts( $args_t10 ); ?> $args_t10_v = array( ‘tag_id’ => 10, ‘post_type’ => ‘videos’ ); $postslist_t10_v = get_posts( $args_t10_v ); you then can merge and filter the duplicates $postmixed = array_merge($postslist_t10, $postslist_t10_v); $uniqueposts = array_unique(postmixed); reference wp: get_posts() and … Read more

Return Custom Post Type Categories

When you add a custom taxonomy to a WordPress theme, you can display its content using one of WordPress’ taxonomy theme templates taxonomy-{taxonomy}-{slug}.php We could use this to create a theme template for a particular location, such as taxonomy-taxonomyname-termslug.php for the term “boston.” taxonomy-{taxonomy}.php If the taxonomy were location, WordPress would look for taxonomy-location.php. taxonomy.php … Read more