I want to create a dynamic slider with the picutres I have in the metabox custom field “image advanced”. There is also an official example in the bricks documentation of how to accomplish this (https://academy.bricksbuilder.io/…/filter-bricks-posts…/)
I have added the snippet vía WPCodebox.
Unfortunately I can’t get it to work. Does someone know what I am doing wrong?
Ensure that there are no conflicts with other plugins or your theme that may be preventing the code snippet from working as expected. Try deactivating other plugins temporarily to see if that resolves the issue.
For it to work you can NOT change the name of the ID. It has to be the default value (without the “brxe-”). In my case the actual element id is “brxe-hhnzxg”.
I was able to use de code field from bricksbuilder and php code from meta box to render the images in my template, in my custom code output I gave assigned the bricks classes to the rendered output:
Hoping you can shed some light as this is perfect for what I need to do as well. I managed to get the same look with the images scrolling, but it shows all 3x images and i can’t get them to space correctly in the slider.
Can you also advise where you are using this DIV Class? I am a bit confused about how you have assigned it?
@auwers Thanks for such a fast reply mate and for your help.
I managed to get a simpler solution without any PHP code strings and CSS using a nestable slider query loop.
For anyone wondering, I created the card as the screenshots above in Bricks, and for the image slider I just created a single slide/ block with an image inside. The image has a dynamic data of ‘{post_id}’ instead of selecting an image…and the block the image sits inside has the Query Loop.
More info in the official Bricks Academy update from February 28th, 2025 here.