Home › Forums › Add-ons › Gallery Field › Display correctly ACF gallery as wordpress gallery › Reply To: Display correctly ACF gallery as wordpress gallery
If you want to show the gallery the same way that wp does then
$gallery_images = get_field('gallery', false, false);
echo do_shortcode('[gallery ids="'.implode(',',$gallery_images).'"]');
this is one of the examples given in the gallery field documentation https://www.advancedcustomfields.com/resources/gallery/
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.