I am trying to: Build a post slider. I have created it on lien caché, and I have exported and imported it using Toolset Modules plugin
Link to a page where the issue can be seen: lien caché
I expected to see: the post slider display all posts image, title, and meta
Instead, I got: that are displayed only the image, title and meta of the first post, and after the first slide, the image, title and meta of the other posts disappearing, displaying only the slide controller
Thank you for waiting, while I performed troubleshooting around the slider.
Your view for the slider ( "Post Slider Ridimensionato" ) is using content generated using DIVI Builder. There is a known limitation where content designed using Divi Builder will not display in a View that uses AJAX pagination.
1. Please remove the shortcode "[wpv-post-body view_template="elemento-del-ciclo-in-post-slider-ridimensionato"]" and paste all the content from the loop item content template directly at its place.
( screenshot: lien caché )
2. The CSS code that is added in "CSS editor" tab under the loop item's content template, will also need to be moved to the "CSS editor" tab under the "Loop Editor" section.
( screenshot: lien caché )
I hope this helps and please let me know how it goes.
Hi Waqar,
thanks for your reply.
But, why in lien caché it works fine?
So, yes, I use Divi Builder, but after the construction of section I need, I don't use the Divi shortcode into the Content Template, I take the HTML structure and I replace the
.et_pb_section_0
.et_pb_row_0
.et_pb_text_0
.et_pb_section_1
.et_pb_row_1
.et_pb_text_1
.et_pb_section_2
.et_pb_row_2
.et_pb_text_2
with a dedicated CSS class (for example .et_pb_section_0 become elemento-slider, ecc..)
This limitation is related to the content edited and generated through DIVI Builder and is not specific to DIVI shortcodes.
My tests confirm that instead of bypassing the content template ( [wpv-post-body] ) completely, only introducing suppress_filters="true" attribute also fixes this.
Instead of following the two steps from my last message, you can simply update your content template shortcode to:
I'll have to see and troubleshoot exactly what is different in the slider view used in the lien caché website, but the admin user that you've shared doesn't seem to have the privilege to access that parent site on the network.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Francesco
The only difference I see between the original site—where it works without using the suppress_filters="true" attribute—and the new site—where it does not—is that when editing posts on the original site the Divi editor doesn't activate.
There are Divi shortcodes in the post content, but when you edit the posts you don't get the Divi editor UI in the same way that you do with the new site.
The expected behaviour is as seen on the new site, where the suppress_filters attribute is needed (or moving the content from the template to directly within the wpv-loop tags). I can't say why it works without this on the old site except that it seems to be related to the post content created with Divi which works differently on the two sites when editing the posts themselves.