Hi Amber
You certainly saved me some time …
The only tweak I needed to make to your code was for one section where I allowed multiple Post Objects to be selected – using your example I added an s to – $containers and using foreach $containers as $container – to allowed me to display multiple records (prob no use for base price but if you were showing say – container colors or something you could select multiple and they would all show)
<?php $containers = get_field('container'); foreach( $containers as $container): if( $container ): ?>
<p class="price">$<?php the_field('base_price', $container); ?>+</p>
<?php endif; ?>
<?php endforeach; ?>
Thanks Again
All the best
Brad
Hi Amber
Can I just say thank you very much for updating your query with the detailed solution.
I have been battling with a very similar problem all afternoon which is now solved thanks to your post.
Have a good weekend
Kind Regards
Brad
Hi @katie
Thank you very much for your reply and code example.
I will pick this project up again next week and run through implementing your solution
Greatly appreciated
All the best
Brad
Hi James
Many thanks for your reply. and recommendation. It is almost an essential feature when using a map with multiple markers.
Otherwise it becomes a bit like a game of Pelmanism …
All the best
Brad
Hi there,
May I please ask if there has been any advancements or work around found for this request?
I would also like to either use a sidebar or basic list below the map with place names and link to show on map
Kind Regards
Brad
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.