This support ticket is created vor 7 Jahren, 1 Monat. 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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
- I have implemented a test carousel slider here: versteckter Link
- View that I have used: versteckter Link
You have not added CSS, JS for the owl carousel, I have added that css, js in the Views CSS editor and JS editor sections. You can use this View and modify as needed -- please make sure to backup it or duplicate it and then modify as needed. This sample slider view will server as an example for you.
1. can we use this inside a content template to fetch latest posting and posting limits ?
2. is there any implication of using content template vs Views ?
Hi Noman, i understand my mistake at early stage. i enter the owl carsl div
" <div class="owl-carousel owl-theme">" at the wrong locations., it was in the loop template.
correct method is what you have done, outside the loop.
regarding the css and js i have removed and it auto ref/fetch from my uploaded dir .
i still would like to understand more on : using content template vs views, the pro and cons etc.
Just got back from weekend today. You can insert that Views into the Content Template. The reason we are using View here instead of Content Template:
- That we are fetching images from Post images (featured image) and we need to run through all posts to get all the images (loop is needed for this). Also Limit, offset, orderby attributes helps.
- In Content Template we don’t have loop but the slider can probably be creating in CT as well. For this one needs to use Repeating image field >> then use [wpv-for-each] over the repeating image field to loop through all images in the repeating image field >> this shortcode also has End (limit) and couple other attributes to use: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-for-each