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

Using post type archive page for taxonomy archive

Have you checked the WordPress Template Hierarchy Diagram To get an idea how wordpress choose the tempalte. I’m not sure but according to the WordPress Template Hierarchy, WordPress will choose default archive.php for custom taxonomy if no special template is specified. That means you cannot not have archive-product.php to use with Custom Taxonomy archive. In … 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

register_taxonomy – show in admin menu, but not on post type (edit) screen

As per le comment. function remove_artist_meta() { remove_meta_box( ‘{taxonomy name}’, ‘post’, ‘side’ ); } add_action( ‘admin_menu’ , ‘remove_artist_meta’ ); The Admin menu has been always difficult to deal with, some help here would be nice: http://core.trac.wordpress.org/ticket/12718 But I think that this could be added a a parameter to register_taxonomy. http://core.trac.wordpress.org/ticket/21543

Custom Taxonomy in Permalink from post type

Set your taxonomy slug to taxonomy_name and in your post type set the slug to taxonomy_name/%taxonomy_name_term% and flush rewrite rules (simply by going to permalink settings panel in the admin) And after that WordPress will be able to handle /taxonomy_name/%taxonomy_name_term%/post-name/ URLs. So all that is left to do is tell WordPress what %taxonomy_name_term% means and … Read more

List child terms and posts in the current term

ok, i don’t know how this looks but i’ve got exactly what i wanted. <?php $term = get_queried_object(); $tax = ‘ntp_package_type’; $parents = $term->parent; $term_id = $term->term_id; if($parents == 0 && !is_single()){ wp_list_categories( array ( ‘taxonomy’ => ‘ntp_package_type’, ‘pad_counts’=> 0, ‘title_li’ => ”, ‘child_of’ => $term_id, ) ); } elseif ($parents > 0 && is_tax($tax, … Read more