Title: shortcode change?
Last modified: November 11, 2019

---

# shortcode change?

 *  Resolved [eagle2014](https://wordpress.org/support/users/eagle2014/)
 * (@eagle2014)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/shortcode-change-2/)
 * My shortcode works with [display-posts] but I am working with a small ecom site
   with Woocommerce. I want my “product” category to show but I have tried it several
   ways and no luck. ex: [display-posts category=”chakra”] does not work, [display-
   product posts category=”chakra”] does not work either. anybody have any suggestions?

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

 *  [acrocosm](https://wordpress.org/support/users/acrocosm/)
 * (@acrocosm)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/shortcode-change-2/#post-12164142)
 * Yes, read on…
 * I made with CPT-UI a custom post called “product_pi” and assigned a custom taxonomy
   named “product_categories_pi”. Then assigned some terms to my posts from this
   taxonomy one of them is “fridges”.
 * Then in my display posts shortcode I used the following to select only fridges:
   `
   category_display="product_categories_pi" category_label="" post_type="product_pi"
   taxonomy="product_categories_pi" tax_term="fridges"`
 * This will give me only “fridges” and nothing else
 * (I left the label blank so I can show just a dashicon with css)
 * Good luck
 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/shortcode-change-2/#post-12167589)
 * You can use the `category_display` parameter to display custom taxonomies as 
   well.
 * [display-posts category_display=”true”] – includes the “category” taxonomy
 * [display-posts category_display=”product_cat”] – includes the “product_cat” taxonomy
   from WooCommerce
 * Here’s more information on [the display parameters in Display Posts](https://displayposts.com/docs/parameters/#display-parameters).

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

The topic ‘shortcode change?’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/shortcode-change-2/#post-12167589)
 * Status: resolved