Hi @acf-support
I worked it all out. I created a post object field called Venue in Events, that pulled in all the different Venues; I just needed to select the appropriate venue and then used the_field() to pull in all the other data from the Venues table that I needed into the template file for the event listing, meaning that I didn’t need to autofill anything in the form, . It all worked out in the end! Although, the documentation is a little confusing at times and a few real-life working examples would be really helpful!
Thank you!
Hi @acf-support James,
I’ve managed to get part 1 done, which is pull the venue title into a dropdown in the events custom field group, how do I autofill the telephone/website/other info custom fields when I select from the dropdown? I just don’t get it!
Thanks
Hi James,
I’ve managed to get part 1 done, which is pull the venue title into a dropdown in the events custom field group, how do I autofill the telephone/website/other info custom fields when I select from the dropdown? I just don’t get it!
Thanks
Cheers,
I’ll give it go!
Thanks James,
I looked at the first link before I posted my question, but let me clarify my scenario – I need to have a lot addresses/emails/phone numbers for venues (400 I think), these will be on a page of venues, so this will be my custom post type venues. I have a second page that is going to show listings of events taking place, so when I post up a listing, I’d like to be able to pull the venue information into the ACF from that I’ve created in a dropdown select box so that I don’t have to fill out the information again, as for 20-30 listings a day this will get a little excessive!
Oh and thank you for any help!
Pritpal
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.