- This topic has 6 replies, 4 voices, and was last updated 2 years, 12 months ago by
Fernando.
-
AuthorPosts
-
February 9, 2023 at 6:09 am #2527118
Steve
I have GeneratePress and Blocks, both Pro.
I have got my single custom post type pages working mostly as I want but am struggling with how to add a simple slider or gallery using images dynamically pulled from custom fields.
I am using CubeWP for custom post types and fields and I can add image fields or gallery fields with that. Cube gives shortcodes for each custom field so I can dynamically pull in a gallery of images using the shortcode block and up with something on the front end like:
<div class-"gb-container gb-container-eb68721f" <div class="cwp-cpt-single-gallery"> <img class="cwp-cpt-single-gallery-item" src="/upload1.img"> <img class="cwp-cpt-single-gallery-item" src="/upload2.img"> <img class="cwp-cpt-single-gallery-item" src="/upload3.img"> </div> </div>I’m just not sure how I would go about making those images display in a simple slider…
I’m happy adding slider components in custom coded html/css/js, kinda new to wordpress and php though, so not sure how to do this in WordPress as then the images need to be added in the slider plugin and I can’t find any that source images from custom fields on a single post.
I know there’s not a GenerateBlock for sliders but I’m sure I can’t be the first person needing to do this so what approach are people taking to resolve it?
I took a look at Cwicly last night and I could do what I needed with sliders on custom single posts in a few minutes but other than this slider/gallery issue I’m really liking GeneratePress/Blocks and would like to stick with it if possible.
PS: I’m happy to add some blocks from another provider if that will resolve the slider/gallery display issue on custom single posts.
February 9, 2023 at 8:54 am #2527464David
StaffCustomer SupportHi there,
sliders and carousels will be something we will add to GB Pro in the future.
The groundwork has already been set for that with GB 1.7 and GB Pro 1.5.Although it is possible to integrate a slider script to work with say the GB Query Loop or a static Grid Block, for now an alternative plugin would make the most sense.
February 9, 2023 at 1:03 pm #2527715Steve
Thanks David – looking forward to sliders and carousels appearing in GB pro.
In the meantime I’ve had some success with GreenShift Blocks (just mentioning this for anyone else coming across this thread). The free version includes a slider that lets you populate each slide with a shortcode – so you can pull images from Custom fields. This works fine if:
a) You have a custom field generator that gives you shortcodes for each field and;
b) You are happy to have the SAME number of images in the slider for each post
I’m looking for a slider that can build the number of slides dynamically from either a custom gallery or repeater field. I contacted GreenShift and they said their slider with the paid Query add-on ($19.99 a year) will support building slides from custom gallery fields in the next release which should be out in the next week.
I’m happy to pay that (if it works as promised) if it solves the problem until there is a native GB version.
(And please do include the ability to build slideshows dynamically from gallery fields in the GB version 🙂 )
February 10, 2023 at 3:01 am #2528246David
StaffCustomer SupportThanks for the feedback.
All pointed noted 🙂February 23, 2023 at 3:23 am #2543756Steve
For anyone coming across this thread, the latest version of the Query addon (1.6) for GreenShift blocks which I mentioned above includes a new ‘Dynamic Gallery” block that can indeed build galleries and sliders dynamically from custom gallery fields. Works great!
March 19, 2023 at 2:21 pm #2573388Tawna
Looking for documentation and if this is now available – post carousel slider in GB pro
ThanksMarch 19, 2023 at 5:41 pm #2573458Fernando Customer Support
Hi Tawna,
Unfortunately, it’s still not yet available in GB Pro.
-
AuthorPosts
- You must be logged in to reply to this topic.