Tell us what you are trying to do?
Shuffle Custom Type Post's Custom Field's Image field's Multiple instances output.
Website has a Post Types matrix made by connecting Post type "Day (diena)" with "Card (Korta)" for displaying "Card" content on days, which are meant for every exact card, e.g. January 17, February 15, March 13, etc, for every one of Cards. I did manage to create well - working system, it shows needed Card's content by filtering it via Day post Date (current day, current month, every day has it's post "Day"), via relationship "Day - Card". But I want to make Card's Custom Field's Image field's Multiple instances output to show only one image (every Card should have it's 13 different design images) in my View's Content Template, that is for visitors to see random image for daily Card every time he opens the web page. Now it shows all images at once (as it should), and nor I can limit to show only one of them, or make it shuffle.
Could you advise me what could be done here? I could put all these Card images to Days instead of Cards, but that does not change anything. Tried to create new Post Type for Card images and rotate them by relations with Days in separate View with limit of 1 and Random order - then Date filter has no "Current Day" and it does not work like this. I can put every card in separate instance with it's separate date for filtering, but this would bloat my database and make a giant mess with 13 designs for one Card, for every of 366 days, so this would be very messy and it would be even hard to find, lets say, single needed design. So this is not a good way to go.
I would appreciate any advise, how to do this in right way.
Is there any documentation that you are following?
General documentation, support archive
Is there a similar example that we can see?
No, I did not found it anywhere
Hello. Thank you for contacting the Toolset support.
Well - as you want to display the random repeating instnace, what if you try to use the index attribute that will display the specific index. So find a way to get a random number and assign it to "index" attribute.
For example:
[types field='field-name' index='0'][/types] - will display the first instance of repeating field
[types field='field-name' index='1'][/types] - will display the second instance of repeating field