I have a bunch of testimonials in a channel. Some have the exact same value in the title field.
My code looks like:
{exp:query
sql="
SELECT DISTINCT title
FROM exp_channel_titles
WHERE channel_id=19
ORDER BY RAND() LIMIT 3
"}
{exp:channel:entries channel="testimonials" disable="categories|member_data|pagination"
search:title="{the_title}" dynamic="no" limit="1"}
{title}
{/exp:channel:entries}
{/exp:query}
How can I insure I do not get more than one entry with the same title?
I can write a little SQL if needed.
Thx.