I am trying to build a conditional output on view. I want to show view results on different content templates according to post type.
for example if post type is "A" i want to show this post in "A content template" and if post type is "B" i want to show this post in "B content template" in a same view results.
<wpv-loop>
[wpv-conditional if="( '[wpv-post-type]' eq 'izlenim' )"][wpv-post-body view_template="liste-icerik-skin"][/wpv-conditional]
[wpv-conditional if="( '[wpv-post-type]' eq 'kisa-film' )"][wpv-post-body view_template="liste-icerik-kisa-skin"][/wpv-conditional]
</wpv-loop>
with above conditions page shows only "kisa-film" with right content template option. But 'izlenim' type posts are missing.
hidden link
thank you.
You would use the wpv-post-type shortcode in the condition as you did already, and if the post type is really in the view, it will work.
Maybe the View does not query both post Types?
Or the [wpv-post-type] value is not precisely izlenim, instead maybe izlenims or similar?
My issue is resolved now. Thank you!