Hi Ismael
Thanks, this is my first experience with twig so forgive me if i ask some silly questions. Now i can see the information in the array i am assuming i can feed that into a looper provider as dynamic content and then use it in my layout in the usually way. Ultimately i want the band name and then a list of events that are performing i.e. venue name date of event time of event
array(3) {
[0] => object(WP_Post) #11579 (24) { ["ID"]= > int(80) ["post_author"] => string(1) "1" ["post_date"] => string(19) "2025-03-03 16:28:08" ["post_date_gmt"] => string(19) "2025-03-03 16:28:08" ["post_content"] => string(0) "" ["post_title"] => string(33) "event 5 at the foxlow with Band D" ["post_excerpt"] => string(0) "" ["post_status"] => string(7) "publish" ["comment_status"] => string(6) "closed" ["ping_status"] => string(6) "closed" ["post_password"] => string(0) "" ["post_name"] => string(33) "event-5-at-the-foxlow-with-band-d" ["to_ping"] => string(0) "" ["pinged"] => string(0) "" ["post_modified"] => string(19) "2025-03-03 16:30:35" ["post_modified_gmt"] => string(19) "2025-03-03 16:30:35" ["post_content_filtered"] => string(0) "" ["post_parent"] => int(0) ["guid"] => string(45) "https://tcfdev.xyz/?post_type=event&p=80" ["menu_order"] => int(0) ["post_type"] => string(5) "event" ["post_mime_type"] => string(0) "" ["comment_count"] => string(1) "0" ["filter"] => string(3) "raw"
} [1] => object(WP_Post) #11589 (24) { ["ID"]= > int(37) ["post_author"] => string(1) "1" ["post_date"] => string(19) "2025-02-27 10:13:26" ["post_date_gmt"] => string(19) "2025-02-27 10:13:26" ["post_content"] => string(0) "" ["post_title"] => string(13) "Blues Event 4" ["post_excerpt"] => string(0) "" ["post_status"] => string(7) "publish" ["comment_status"] => string(6) "closed" ["ping_status"] => string(6) "closed" ["post_password"] => string(0) "" ["post_name"] => string(7) "event-4" ["to_ping"] => string(0) "" ["pinged"] => string(0) "" ["post_modified"] => string(19) "2025-03-03 16:48:16" ["post_modified_gmt"] => string(19) "2025-03-03 16:48:16" ["post_content_filtered"] => string(0) "" ["post_parent"] => int(0) ["guid"] => string(45) "https://tcfdev.xyz/?post_type=event&p=37" ["menu_order"] => int(0) ["post_type"] => string(5) "event" ["post_mime_type"] => string(0) "" ["comment_count"] => string(1) "0" ["filter"] => string(3) "raw"
} [2] => object(WP_Post) #11582 (24) { ["ID"]= > int(84) ["post_author"] => string(1) "1" ["post_date"] => string(19) "2025-03-04 11:19:21" ["post_date_gmt"] => string(19) "2025-03-04 11:19:21" ["post_content"] => string(0) "" ["post_title"] => string(9) "new event" ["post_excerpt"] => string(0) "" ["post_status"] => string(7) "publish" ["comment_status"] => string(6) "closed" ["ping_status"] => string(6) "closed" ["post_password"] => string(0) "" ["post_name"] => string(9) "new-event" ["to_ping"] => string(0) "" ["pinged"] => string(0) "" ["post_modified"] => string(19) "2025-03-04 11:19:35" ["post_modified_gmt"] => string(19) "2025-03-04 11:19:35" ["post_content_filtered"] => string(0) "" ["post_parent"] => int(0) ["guid"] => string(45) "https://tcfdev.xyz/?post_type=event&p=84" ["menu_order"] => int(0) ["post_type"] => string(5) "event" ["post_mime_type"] => string(0) "" ["comment_count"] => string(1) "0" ["filter"] => string(3) "raw"
}
}
I have formated the contents of the array to make it easier to read. I can see the event post IDs i need so should i then be using a twig statement somthink like the statement you advised me to use in a previous post (ACF relationship field returning post id number)
{% set venue = get_post({{ ID_HERE }}) %} {{ venue.address }}
If so how do i feed the 3 ids from the events array into this statement
sorry for the seemingly basic questions but this is my first trip down the rabbit hole of Twig. Once i have a working example of how twig works with posts and ACF fields i should be able to expand my knowledge from the ThemeCo documentation. Hopefully a MAX series is in production for twig.
thanks again for any help and advice you can give
Richard