Skip Navigation

[Resolved] How to use Image Slider (View) with Beaver Builder

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by karenZ 3 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#2326079
7d34274d-c916-4036-b763-609adce917d7.png
Screen Shot 2022-03-24 at 9.53.15 AM.png
ac6ada3e-7704-4d7c-9f39-361870bae511.png

Hello,
We're trying to insert the Toolset Image Slider into our Content Template that is built with Beaver Builder. First ,we setup a new view ("House Gallery"). Within this view we have connected a Loop Content Template (built using the Block Editor). The Loop Item contains the Image Slider block. Within our Beaver Builder Content Template for Single Houses we've added the shortcode to display the "House Gallery" view.

When we're editing the Loop Item we can see that it is pulling the correct images for the house we're previewing. But when we view an actual house listing (single content template) we are seeing the same images across all listings - not the ones assigned to the current post.

I've attached screenshots of the settings we have in place for our View and the Loop Content Item. Can you help us understand what we're missing in our settings that is preventing the Image Slider from showing the current post/house?

#2326207

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karen,

Thank you for getting in touch.

This is due to the view not having a query filter to tell it to only show the items for the current post.

On you views setting page in your screenshot you should see the section called Query Filter, click add a filter and then add one for the post id.

From there select the option "Posts with IDs set by the View shortcode attribute:"

Finally just add your view to the template using the shortcode like below.

[wpv-view name="my-view" ids="[wpv-post-id]"]

Where my-view is the slug of your actual view.

Please let me know if this helps.
Thanks,
Shane

#2326297
Screen Shot 2022-03-24 at 3.32.43 PM.png
Screen Shot 2022-03-24 at 3.32.10 PM.png

Hello,
I followed the instructions above to add the Query Filter (See screenshot). I then updated the Shortcode in my Content Template (See Screenshot). But now it says "No Items Found" for the Slider. I'm not sure what's missing or incorrect.

#2326323

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karen,

Based on what I see it should be working as intended.
Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?

Please where applicable please provide me with a link to an example page where I can see the issue.

I've enabled the private fields for your next response.

Thanks,
Shane

#2326937

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Karen,

Thank you for the login details.

The reason for this behaviour in the view was because your post was set to draft. By default our view will only display posts with published status.

To work around this i've added a post status query filter and set it to display both draft and published posts.

Your gallery should be showing now.

Thanks,
Shane

#2327095

My issue is resolved now. Thank you!