on my website hidden link I made a filter to show pages, posts, custom posts and images in 1 view. I see al the posts, except the images. How can i make them show up?
When you test, search with the word "Kou"
Can you give me the right code for the view?
[wpv-conditional if="( '[wpv-post-type]' eq 'media' )"]
<div class="type ber">
<h3>[wpv-post-link]</h3>
<span class="ext">[types field='extra-informatie'][/types]</span>
[wpv-post-body output="raw"] Bekijk
</div>
[/wpv-conditional]
Media should not be displayed directly in a View, usually.
Usually you create a view and Query the Post type where you write your post, not the Media Post type.
Then, in those posts you add Images, and wether they are Featured Image, Types Custom Fields or in the Post body added with the Media Uploader, you can then display them in the Loop of that View with:
- Featured Image ShortCode
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image
- Types Image Field ShortCode
https://toolset.com/documentation/customizing-sites-using-php/functions/#image
- Post Body ShortCode if the image was added within the Body.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body
This way you get the images related to your Posts.
Otherwise, you get all Images from the Library in a irrigated order.