Title: Shortcode for a category doesn&#8217;t work
Last modified: July 19, 2018

---

# Shortcode for a category doesn’t work

 *  Resolved [tessahr](https://wordpress.org/support/users/tessahr/)
 * (@tessahr)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/shortcode-for-a-category-doesnt-work/)
 * Hello!
    I installed the plugin, added the general shortcode [shop-page-wp] to
   add products to my blog post and it worked great. Then I added new products, 
   defined by category “style” with [shop-page-wp category=’style’]to another blog
   post and it worked fine. So products from my original post had to be updated 
   with a new category shortcode “travel” as in [shop-page-wp category=’Travel’]
   This is when I had a fail. Nothing showed up on the “travel” post ( link above)
   To get those products to show up on the travel blog post I had to delete the 
   category “style” products and revert to [shop-page-wp]. Using v 1.09; WordPress
   4.9.7; Safari 11.1.1 Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-for-a-category-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [tessahr](https://wordpress.org/support/users/tessahr/)
 * (@tessahr)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/shortcode-for-a-category-doesnt-work/#post-10520716)
 * Tried this again today and found out using the **category** in the shortcode 
   doesn’t work but if I use the **category slug** it does.
    -  This reply was modified 7 years, 10 months ago by [tessahr](https://wordpress.org/support/users/tessahr/).
 *  Plugin Contributor [Justin McChesney-Wachs](https://wordpress.org/support/users/justinmw/)
 * (@justinmw)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/shortcode-for-a-category-doesnt-work/#post-10524001)
 * Hi Tessa,
 * Is it possible that you have duplicate category names? WP does allow duplicate
   names, but not slugs. This could be the cause.
 * Best,
    Justin
 *  Plugin Contributor [Justin McChesney-Wachs](https://wordpress.org/support/users/justinmw/)
 * (@justinmw)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/shortcode-for-a-category-doesnt-work/#post-10565367)
 * Marking as resolved as we haven’t received a reply. Feel free to open a new ticket
   if there’s still an issue. Thanks!

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

The topic ‘Shortcode for a category doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/shop-page-wp/assets/icon-256x256.png?rev=1621159)
 * [Shop Page WP](https://wordpress.org/plugins/shop-page-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shop-page-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shop-page-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/shop-page-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shop-page-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shop-page-wp/reviews/)

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)

 * 3 replies
 * 2 participants
 * Last reply from: [Justin McChesney-Wachs](https://wordpress.org/support/users/justinmw/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/shortcode-for-a-category-doesnt-work/#post-10565367)
 * Status: resolved