Title: another newbie shortcode question
Last modified: September 29, 2025

---

# another newbie shortcode question

 *  Resolved [edwardsmark](https://wordpress.org/support/users/edwardsmark/)
 * (@edwardsmark)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/another-newbie-shortcode-question/)
 * hello – since kind people in this [forum made the mistake of actually encouraging a stupid newbie question](https://wordpress.org/support/topic/shortcodes-newbie-question/),
   here is yet another silly newbie question:
 * i was trying to use a shortcode attribute more meaningful than **id **(which 
   _DOES _work). i tried **title**, **name**, **slug **but none of these worked.
   finally i just copy-pasted the slug value into the unused **sku **field and that
   shortcode value **sku **works fine.
 * was there another shortcode attribute for **title, name or slug**? oddly, they
   just seemed to show either the LAST or the FIRST product (i forget which).

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

 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/another-newbie-shortcode-question/#post-18661132)
 * Hi [@edwardsmark](https://wordpress.org/support/users/edwardsmark/),
 * Great question—and not silly at all! In WooCommerce shortcodes like `[product]`
   or `[products]`, the main supported attributes for identifying a product are 
   typically `id` and `sku`. Unfortunately, attributes like `title`, `name`, or `
   slug` aren’t officially supported for fetching specific products in these shortcodes,
   which is why they didn’t work as expected.
 * You can review the official WooCommerce shortcode documentation here:
   https://
   woocommerce.com/document/woocommerce-shortcodes/
   
   [https://woocommerce.com/document/woocommerce-shortcodes/products/](https://woocommerce.com/document/woocommerce-shortcodes/products/)
 * If you need to target products by attributes other than `id` or `sku`, you would
   usually need a custom query or plugin. But for shortcodes out-of-the-box, using`
   id` or `sku` is your best bet.
 * I can recommend [WooExperts](https://partners.woocommerce.com/English/marketplace/)
   and [Codeable.io](https://woocommerce.com/codeable/) as options for getting professional
   help. Alternatively, you can also ask your development questions in the [ WooCommerce Community Slack](https://woocommerce.com/community-slack/)
   as custom code falls outside our usual [scope of support](https://woocommerce.com/support-policy/#customization).
 *  Thread Starter [edwardsmark](https://wordpress.org/support/users/edwardsmark/)
 * (@edwardsmark)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/another-newbie-shortcode-question/#post-18661476)
 * `which is why they didn’t work as expected.`
 * more like “didn’t work like i hoped and prayed it would”….!
   but i am just happy
   to have something working.
 * `Great question`
 * awww shucks, now i am blushing…..!
    -  This reply was modified 8 months, 2 weeks ago by [edwardsmark](https://wordpress.org/support/users/edwardsmark/).
 *  [LovingBro (woo-hc)](https://wordpress.org/support/users/lovingbro/)
 * (@lovingbro)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/another-newbie-shortcode-question/#post-18661539)
 * Hi [@edwardsmark](https://wordpress.org/support/users/edwardsmark/),
 * That made me smile — glad to hear you’re happy with the solution you’ve got working!
   Thanks for engaging in the forum, and if you ever have more questions down the
   road, feel free to open up a new topic here and we’ll be glad to help.

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

The topic ‘another newbie shortcode question’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [LovingBro (woo-hc)](https://wordpress.org/support/users/lovingbro/)
 * Last activity: [8 months, 2 weeks ago](https://wordpress.org/support/topic/another-newbie-shortcode-question/#post-18661539)
 * Status: resolved