Hello,
I think you're misunderstanding me. My previous post was not a new question, it was merely a test example used to try and understand how wpv-item works. I made the post because wpv-item does not appear to function as one would expect and your reply unfortunately did not explain anything.
For example, in your reply you wrote this:
<wpv-loop>
[wpv-item index=1]
Big Image[wpv-item index=1]
<span>Title</span>
<p>This is the first item</p>
[wpv-item index=other]
[wpv-item index=other]
<span>Title</span>
<span>Author</span>
<p>This is the other items</p>
</wpv-loop>
Why is [wpv-item index=1] written before AND after "Big Image"? Why is [wpv-item index=other] written twice in a row?? This does not appear to be very intuitive.
In your second example where you wrote:
<wpv-loop>
[wpv-item index=1]
Big Image - Odd
[wpv-item index=2]
Small Image - Even
[wpv-item index=3]
Small Image - Odd
[wpv-item index=4]
Small Image - Even
[wpv-item index=5]
Small Image - Odd
</wpv-loop>
This does not address what I was trying to test, which was trying to use 2(or more) wpv-item shortcodes on a single record... one(wpv-item index=1 or wpv-item index=other) to detect if the record is the first record(or greater than first) and display either a big image or a small image, and a second one(wpv-item index=odd or wpv-item index=even) to detect if the record's position is odd or even and display some content accordingly. What I wrote was just an example, there could be any number of rows, not just 5.
I'll create another example. In the example I want to hide or show various content depending on the record's position. I'll show you how I would accomplish this if wpv-item were part of the Conditional Output feature. If you'd be so kind, please show me how I would accomplish the same using the wpv-item shortcodes as they are.
So in my example, my goals are to...
a) Show a big image on the first record and a small image on every record after.
b) Show the title only on odd numbered records. (Doesn't make sense, but just for example)
c) Display an ad half way through the list of records
Example starting code:
<wpv-loop>
<div class="wrapper">
<img src="Big Image">
<img src="Small Image">
<h2>Title</h2>
<p>Author</p>
<div class="ad">
Advertisement
</div>
</div>
</wpv-loop>
How I would accomplish the above goals if wpv-item were part of Conditional Output...
<wpv-loop>
<div class="wrapper">
[wpv-conditional if wpv-item index=1]<img src="Big Image">[/wpv-conditional]
[wpv-conditional if wpv-item index=other]<img src="Small Image">[/wpv-conditional]
[wpv-conditional if wpv-item index=odd]<h2>Title</h2>[/wpv-conditional]
<p>Author</p>
[wpv-conditional if wpv-item index=split2]
<div class="ad">
Advertisement
</div>
[/wpv-conditional]
</div>
</wpv-loop>
Please demonstrate how I can accomplish the above, but using just wpv-item as it is...
Or maybe you'll agree that wpv-item should be merged into Conditional Output to increase its intuitiveness, flexibility and ease of use?
Thanks!