-
sascha
Hi
I have added a few custom fields to the Woo Product post type (event_date, event_timestart, event_timeend) in order to sell “Live Webinar” products.
Now I need to display the latest 2 Webinar products on a regular page. I have added a GB query loop, set the post type to “Products”, posts per page to “2” and product categories to “Webinar”.
Looks ok so far, but I struggle to display the above mentioned custom fields. I have inserted a text block, chose “Loop Item” under “Dynamic Tags”, but cannot find a way to add any of the relevant field_ids.
Next, I try to to display the value of the “event_date” field as a weekday, only showing the first 2 letters of that weekday. E.g., when the date is set to 28.05.2025 (which is a Wednesday), I want to display “WE” only (German translation would be “MI”).
Any chance to help me with these 2 issues?
Kind regards
Sascha -
Hi there,
Try post meta > field_key instead of loop_item.
Next, I try to to display the value of the “event_date” field as a weekday, only showing the first 2 letters of that weekday. E.g., when the date is set to 28.05.2025 (which is a Wednesday), I want to display “WE” only (German translation would be “MI”).
You should be able to set the format in ACF field.
- You must be logged in to reply to this topic.