Hello, I have another question related to random order. I have numerous entries with a few fields in them. One of the fields is a dropdown set to Yes or No that users can select.
Here is what I am trying to accomplish. We want those entries to display randomly every time a person visits that page (we’ve set limit to 1). We were able to figure that out no problem. The issue is when we want to temporarily stop the random so that only one of those entries displays for everyone and there is no random rotation.
Here is what my code looks like now. I was trying to use conditionals but I am not sure how to make this work.
{exp:channel:entries channel="sheriffs" dynamic="no" orderby="random search:featured_content="not IS_EMPTY" search:extended_featured_content="No" limit="1"}
{featured_content}
{/exp:channel:entries}
So the logic behind this is 1)find the featured_content fields that are NOT empty and 2) have the extended_featured_content field set to “No”, 3) and display them randomly.
However, let’s say we want one entry to be “extended” in other words to “turn off” the random loading of entries and ONLY show the one with the extended_featured_content set to “YES” we get problems.
Does this make sense? Can you help?
Thank you.