Title: Custom Field Shortcode
Last modified: December 2, 2016

---

# Custom Field Shortcode

 *  Resolved [achaitman](https://wordpress.org/support/users/achaitman/)
 * (@achaitman)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-field-shortcode/)
 * Since there is no way to have my newest added items appear first, I created a
   custom_field that I can check when I add a new item.
 * I am using the shortcode
 * [product-catalog id=’2′ custom_fields=’6′ excluded_layouts=’List’ starting_layout
   =’thumbnail’]
 * but when i look at the page, it is blank. [http://www.lillianesjewelry.com/new-arrivals/](http://www.lillianesjewelry.com/new-arrivals/)
 * I can use filters to look at the newest items but I do not know why that shortcode
   is not working.
 * Also, is there anyway to get the “New Arrivals” text to be displayed on the items
   that are marked without it displaying “New Arrivals: New Arrivals” ?

Viewing 1 replies (of 1 total)

 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-field-shortcode/#post-8516631)
 * Hi Achait,
 * Taking another look and testing the shortcode, it occurred to me that it should
   be a little more involved than the way it’s laid out in the documentation. Just
   specifying an overall custom field isn’t enough. You need to actually specify
   which values from that custom field you want to filter by.
 * For example, let’s say you have a custom field with an id of “1” and there are
   three values for that custom field: “red”, “blue” and “green”. But, let’s say
   you only want to show products that are “red” and “blue”. Then your shortcode
   should look something like:
 *     ```
       [product-catalogue id="X" custom_fields="1=blue,red"]
       ```
   
 * Could you please try using this formatting for the shortcode?
 * For the New Arrivals text: it looks like you have a custom field called “New 
   Arrivals” and a value assigned to it also called “New Arrivals”. In this case,
   I’d suggest maybe renaming the value to “Yes” so that it’ll read “New Arrivals:
   Yes”.

Viewing 1 replies (of 1 total)

The topic ‘Custom Field Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-product-catalogue/assets/icon-128x128.png?rev=1805317)
 * [Ultimate Product Catalog](https://wordpress.org/plugins/ultimate-product-catalogue/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-product-catalogue/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-product-catalogue/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-product-catalogue/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-product-catalogue/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-product-catalogue/reviews/)

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/custom-field-shortcode/#post-8516631)
 * Status: resolved