This is somewhat related to this thread.
—————
Scenario: The clients blog posts can have 0-10 images. The images are ancillary to the text so displaying any more than 2-3 overwhelms the text. Since I can’t do what I wanted in the above link, I’ve hardwired the number of images brought in through the reverse_related entries tag. If there are more than that hardwired number, I want to include a link to a gallery showing all the images with their captions. The images are in their own weblog as single entries.
Need: Have to get the total number of images in the gallery weblog that are related to the currently displayed entry and condition this against the display limit. Something like this…
{reverse_related_entries weblog="w_gallery" orderby="date" sort="asc" limit="3"}
{image}
{caption}
{if current_count == "3" AND current_count < total_related_entries }
Here’s a link to the image gallery for this post.
{/if}
{/reverse_related_entries}
Have searched but couldn’t find if there’s variables that will work or can do this.
Any insights will be greatly appreciated.