[Résolu] Slider from image Post field – Loop showing all images from all Custom Post Type
This support ticket is created Il y a 7 années et 8 mois. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to create an Slider from the images uploaded as a Custom Post Fields (Type image)
I managed to use bootstrap featured to solve my needs in terms of "slidered" features.
My problem is that the loop from my View is displaying every image that use the Post Field, so I end up having a slider with all the images related to my Custom Post Type in a Single view.
The wpv-for-each shortcode you have set up looks correct.
I ran a simple test with a custom field 'images' added to my CPT and created a content template for displaying a single post of that CPT and added the following to the template:
That showed each of the images attached to the current post I was viewing, but it didn't show images from any other post.
In my example I am only looking at one post at a time, and looping through the images attached to that post.
I suspect you have set up a view which is looping through all of your posts of the CPT, and then in the content template you are outputting all of the images for each post, hence you end up with all the images of all the posts.
Depending on what you are trying to achieve where, you may not need a view, you may just need a content template.