Jump to content

Welcome to the forum:

Welcome to the iThemes forum. We've created several tutorial video's to help you get you started with using the forum, please check them out!

Also take note of the forum guidelines.

Support hours:

Our moderators actively respond to forum support requests during normal business hours which are Monday-Friday, 8am - 5pm Central Standard Time, typically within one business day. Although some moderators choose to work during the weekends, we can not guarantee immediate attention to your requests. Thanks for understanding.

What is included with support:

Premium support includes theme/plugin issues such as: bugs encountered under normal operation, how to use basic features, basic WordPress help, and basic help with customization (meaning we point you to resources and will help in more depth as time allows). More information.

4th of July weekend:

Please note that due to the 4th of July celebrations, today, Friday July 3 the iThemes offices are closed. Normal Support will resume on Monday July 6.
Thanks for understanding, and have a great weekend.

in progress

What Is The Proper Terminology For Calling An Exchange Category?

custom template product categories

1 reply to this topic

#1 psillari



  • Members
  • Others: BackupBuddy, Premium Exchange Addon
  • PipPip
  • 22 posts

Posted 03 June 2014 - 07:48 PM

I’m attempting to write a custom template.

My starting point is the following code


/* Template Name: Articles Template */

/** Replace the standard loop with our custom loop */
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'wnd_do_custom_loop' );

function wnd_do_custom_loop() {
global $paged; // current paginated page
global $query_args; // grab the current wp_query() args
$args = array(
	 'cat' => 8, /* shows all posts and child posts from category id */
	 'paged'		 => $paged, // respect pagination

/* If you want to show posts from a category only and no subcategory posts, use 'category_name' => 'category-slug', instead of 'cat' => 8, for example, 'category_name' => 'articles', */
genesis_custom_loop( wp_parse_args($query_args, $args) );

Doing this results in a display of only the posts from the blog category with the ID of 8.

I can even use the category slug by using ‘category_name’ => ‘business-stained-glass’ instead of ‘cat’ => 8 and get the same result.

However when I use an Exchange Product Category ID of “84” I don’t get the Exchange product category “Roses”.

Here’s the detail for one of my Exchange Product Categories
Product Category Name – Roses
Product Category Slug – roses-prod
Product Category ID  – 84

I tried ‘category_name” => ‘roses-prod” but wasn’t able to display the Roses category that way either.

It looks to me like I am not using the appropriate terminology to specify the Exchange product categories.

What terms should I be using?

Is there a reference document that lists or shows me what the correct names for category elements are?

Help is appreciated.


#2 Ronald


    Forum Admin

  • Administrators
  • Others: All Plugins, All Themes, Moderators, Webdesign
  • 33,257 posts

Posted 09 June 2014 - 03:00 PM

Hi Pete,

Exchange products are a Custom Post Type (CPT), and the category is a taxonomy for that CPT. Here's more information on how to use that in a custom WordPress query: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters

hope that helps,

Join the iThemes Builder Community on Google+.

To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. Please also read the forum guidelines.

When asking your question/posting your request on the forum, please be as concise and specific as possible. The shorter your request, the more to the point, the more specific, the easier it will be for us to try and help out.

Reply to this Topic

If this topic is marked RESOLVED or INFORMATION, or if you are NOT experiencing EXACTLY the same issue, please start a new topic to provide the details of your problem. If the solution provided doesn't work for you, you should start a new topic. If you feel this thread contains relevant information, you may include a link to it in your new topic. To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. When posting your question or request on the forum, please be as concise and specific as possible. The shorter and more to the point you can make your request, the better.

For BackupBuddy related issues, be sure to include the status log from your most recent backup.

CLICK HERE to start a new topic in the Exchange ecommerce plugin forum.


Also tagged with one or more of these keywords: in progress, custom template, product categories

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users