• Resolved achaitman

    (@achaitman)


    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/

    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)
  • 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.