Title: avantm's Replies | WordPress.org

---

# avantm

  [  ](https://wordpress.org/support/users/avantm/)

 *   [Profile](https://wordpress.org/support/users/avantm/)
 *   [Topics Started](https://wordpress.org/support/users/avantm/topics/)
 *   [Replies Created](https://wordpress.org/support/users/avantm/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/avantm/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/avantm/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/avantm/engagements/)
 *   [Favorites](https://wordpress.org/support/users/avantm/favorites/)

 Search replies:

## Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Chromatic] custom type tags and categories](https://wordpress.org/support/topic/custom-type-tags-and-categories/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/custom-type-tags-and-categories/#post-5985610)
 * Awesome! Have fun storming the castle! Heh.
    You have been duly upgraded to admin
   supreme. (and, no, I’ve never trusted someone so blindly with my site)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982503)
 * another option could be for me to pull in the etsy_products taxonomy as ‘category’
   and ‘tag’ by editing the Etsy Importer files before it runs. That could be the
   lowest hurdle method.
 * I’m assuming there was a rationale for having a custom tag and category name 
   for the etsy_products cpt. Are there any caveats I should be considering before
   heading down this route? Is editing the category and tag names in Etsy Importer
   a reasonable approach? It would likely resolve the pages and issues with themes
   compatibility. But wondering if doing that may not work with the import functions.
 * I only have a few pages of content so not too worried about restarting from scratch.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Chromatic] custom type tags and categories](https://wordpress.org/support/topic/custom-type-tags-and-categories/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/custom-type-tags-and-categories/#post-5985603)
 * That code totally did the trick for getting the taxonomy on the pages! Thanks
   so much and thanks for going and beyond an issue not really tied to your theme.
 * I created a child theme per your recommendations and for best practice. So, that’s
   done and active.
 * I’m still having trouble with the permalinks requiring the post_type parameter
   to work. There were no similar catgories or tags in the Post catgory but I still
   removed them (only two).
    Anything you can do to help is appreciated, I’m stumped.
   The code makes sense as I read it but I would not have had the skillset to write
   it. thanks again.
 * I’ll gladly give you administrator access. I’m not quite sure how to message 
   via WordPress yet so the easiest method may be for you to you sign up on the 
   site. Then I will promote your user to Administrator. Does that work?
 * Here’s the registration link: [http://www.avantemod.com/wp-login.php?action=register](http://www.avantemod.com/wp-login.php?action=register)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982496)
 * Will do! Are there any examples of the etsy_products etsy_categories Category
   pages working?
    Be great to have a reference child theme to work from if you 
   have one handy.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982475)
 * The dev for the Chromatic theme got back to me and confirmed I’m not crazy – 
   Hooray!
    The reason why is that Etsy Importer uses “etsy_category” instead of“
   category” and “etsy_tag” instead of “tag” for the etsy_products taxonomy. Both
   of the solutions above are assuming that “category” and “tag” are used for the
   cpt taxonomy.
 * They suggested some fixes which I’ll try tonight.
    Here’s the forum topic: [https://wordpress.org/support/topic/custom-type-tags-and-categories](https://wordpress.org/support/topic/custom-type-tags-and-categories)
 * I inserted the snippet provided in the post and it works to insert the tag and
   categories for the product listings. But the category and tags pages aren’t working
   yet. I’ll futz around some more tonight but if you have suggestions I’ll gladly
   try them.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982433)
 * PS – the code snippet from the 2nd example is currently in the bottom of the 
   functions.php of the Chromatic theme for [http://www.avantemod.com](http://www.avantemod.com)
 * Category example:
    [http://www.avantemod.com/category/flatware/](http://www.avantemod.com/category/flatware/)
 * Product listing example:
    [http://www.avantemod.com/products/art-deco-30s-bar-set-with-bakelite-shaker/](http://www.avantemod.com/products/art-deco-30s-bar-set-with-bakelite-shaker/)
 * Both links are available in the “Featured Products” on the right-rail. “Flatware”
   is the only category link. As you can see it’s not adding in the etsy_category
   or etsy_tag taxonomy.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982427)
 * I’ve added it to the functions.php of three different themes (chromatic, espied,
   chaostheory) and and the categories and tags taxonomy for etsy_products have 
   yet to be registered or referenced in the content. I tried adding the code snippet
   at the top as well as the bottom and it’s just not making any difference. The
   taxonomy for etsy_products just isn’t getting registered for etsy_category and
   etsy_tag. So, I’m thinking it may not be a theme issue it has to be something
   special with how the cpt taxonomy is being structured.
 * Is there an example of the etsy_products categories working anywhere? It’d be
   great to see a sample running with the categories and tags functionality working.
   Maybe this would be a good reference for what needs to be done.
 * I’ve tried the code snippet from here:
    [http://premium.wpmudev.org/blog/add-custom-post-types-to-tags-and-categories-in-wordpress/](http://premium.wpmudev.org/blog/add-custom-post-types-to-tags-and-categories-in-wordpress/)
 *     ```
       function add_custom_types_to_tax( $query ) {
       if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
   
       // Get all your post types
       $post_types = get_post_types();
   
       $query->set( 'post_type', $post_types );
       return $query;
       }
       }
       add_filter( 'pre_get_posts', 'add_custom_types_to_tax' );
       ```
   
 * As well as the code snippet from here:
    [https://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page?replies=40](https://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page?replies=40)
 *     ```
       add_filter('pre_get_posts', 'query_post_type');
       function query_post_type($query) {
         if(is_category() || is_tag()) {
           $post_type = get_query_var('post_type');
       	if($post_type)
       	    $post_type = $post_type;
       	else
       	    $post_type = array('post','etsy_products'); // replace cpt to your custom post type
           $query->set('post_type',$post_type);
       	return $query;
           }
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982369)
 * Yes, I agree that’ the issue too. If we can get the custom type catgories and
   tags into the taxonomy that should resolve the issue.
 * Hrmm… tried the code from your link with the same result as the previous code.
   It looks like it should work but doesn’t seem to have any impact.
 * I’m gonna poke around a bit in the template files to see if I can locate where
   the taxonomy is built. Maybe adding in this snippet there will help if it’s being
   overwritten or using another function call.
    I’ll also ping the theme developers
   in case they have ideas where the code should be placed or updated. If you have
   any further suggestions, I’ll give them a try.
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982258)
 * I found this post, which seems to be on the same topic of custom type categories.
   I inserted the code on my functions.php and changed the type to ‘etsy_products’
   but it didn’t appear to make any changes.
 * [https://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page](https://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page)?
 * **The Quesion to Rule Over All Previous Questions:**
    Do you have a solution 
   for the custom etsy_products that we can use in our theme codes to integrate 
   the custom post type categories and tags?
 * I think that would do the trick.
 * If you go to [http://www.avantemod.com](http://www.avantemod.com) the word cloud
   at the top is from the etsy_product categories. The “flatware” link in the upper
   right is too. They both return “Nothing Found” when clicked.
 * And when you look at an etsy_products page the category and tags are both empty.
   I think the above code to integrate with our themes will fix that. Here’s an 
   example (the “In” should be followed by the category):
    [http://www.avantemod.com/products/culver-ltd-sun-scape-gold-black-and-copper-cocktail-rocks-glasses/](http://www.avantemod.com/products/culver-ltd-sun-scape-gold-black-and-copper-cocktail-rocks-glasses/)
 * And, yes, as soon as this issue is resolved and I get the Etsy product links 
   on the pages I’ll be removing “Etsy Store”. For SEO purposes it’s better to have
   the content on my site rather than straight to Etsy. I’ve been waiting for your
   Plug-in and glad to discover it. Thanks!
 * Sorry for all the posts, but it’s been an informative journey. Thanks for joining!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982237)
 * PSS – I figured out how to fix the /products/ issue which was to enable Permalinks
   by Post Name (Settings -> Permalinks -> Common Settings -> Post Name)
 * I’m still experiencing the issue of getting the categories and tags to work for
   the product types. It’s using the Post and Page categories, but not the Etsy 
   Product post type categories. I need to update to also include the etsy_category
   when the post type is etsy_product. Where would I do this and what’s the general
   format?
 * I’d love to use the short code on a post or page to get it to display the content
   for [post-type=etsy_products] and [etsy_category=flatware]. I’ve tried these 
   but they don’t work. It’s just a newbie issue, I know. Any help is appreciated.
 * The URL does though:
    [http://www.avantemod.com/?post_type=etsy_products&etsy_category=flatware](http://www.avantemod.com/?post_type=etsy_products&etsy_category=flatware)
 * How do I get the above content into a post or page?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] etsy_category and etsy_tag are returning no results](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/)
 *  Thread Starter [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/etsy_category-and-etsy_tag-are-returning-no-results/#post-5982228)
 * Not sure how relevant this is, but there’s no products/ sub-section to the site.
   Based on the previous thread I should have a [http://www.avantemod.com/products/](http://www.avantemod.com/products/)
   sub-directory listing all my products but it returns a Page Not Found error.
 * Since this plugin creates a new post type, how do I merge and/or reference it
   via my standard posts, pages, categories, tags, etc… ? I love that (half) my 
   listings made it in but some of the functionality appears to be missing.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Etsy Importer] Invalid header?](https://wordpress.org/support/topic/invalid-header-21/)
 *  [avantm](https://wordpress.org/support/users/avantm/)
 * (@avantm)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/invalid-header-21/#post-5845630)
 * I got exactly the same issue. It’s a type-o on the plug-in installer which seems
   to be using JS syntax instead of PHP syntax. An easy fix:
 * Click on “Edit” for the Etsy Importer plug-in, then
 * Change:
    // Define the base plugin directory for use throughout the plugin
 * To:
    /* Define the base plugin directory for use throughout the plugin */
 * and save. You can know activate the plug-in.

Viewing 12 replies - 1 through 12 (of 12 total)