Home Forums ACF PRO Get the data from Group field


Get the data from Group field

  • Hi there,

    I know, this is common request, but I’m not able to find the solution still. I have Field Group for promo products and I would like to use it as data for promo banners. So now, I have two products there and I would like to randomly select one of them and fill with them promo banner element made in Oxygen builder. I’m able to get data with get_field() but from the current post only.

    But for this, I need to know the ID of the promo product and then get its data. So maybe something like a repeater function with loop and randomly choose. So somehow change the current post and then use the get_field maybe.

    Thanks a lor for advice!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.