This is an extension of my Single CPT template in Genesis to display ACF custom fields including a Gallery field as a Slider tutorial. Here I discuss using Soliloquy instead of Flex slider for displaying images of ACF Pro's gallery field in a slider.
Thanks to Jo Waltham and David Egan for the code.
Requirement: Install and activate the Dynamic addon for Soliloquy.
Below is the PHP that checks if Gallery field is empty and if not, constructs a comma separated IDs of the images in the field and passes these to soliloquy_dynamic() for dynamically displaying a Soliloquy slider.
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
I think this reminds me of something I’m trying to do but is not quite the same.
I was excited to download the Soliloquy Featured content add-on but dismayed to see that, though it allowed you to use a custom post type as featured content, it did not pull any of the custom fields of the custom post type in.
I’m really looking for a way to extend the Featured Content add-on to do query and display custom fields.
I would be happy to go into more detail through email about this and discuss paid development work for this. Or maybe the tutorial or code already exists. Either way, can you help?
Thanks!
Marisa
[…] Displaying Advanced Custom Fields’ Gallery Field as a Slider Using Soliloquy […]
How do I have the post content show in the right column instead of the custom fields?
I have got the gallery to output in the right column, but have changed back to using the standard content editor for the text that I want to show. How can I show that in the left hand column? I can only make it show above or below the gallery.
Hi Sridhar, I’d like this to show on my blog posts instead of in a CPT. How would I do that? Thank you.