Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Query Loop with Woo Custom Fields?

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.