Have need to show some random entries and two aspects have me stumped.
1. I would like to make two weblog:entries calls. The first would display the 6 most recent entries. The second would display 6 random entries but not any already displayed in the first call.
2. For reasons that are too complicated to explain here I’d like to make a weblog:entries call that displays fields A and B from random entries. Elsewhere on the page I’d like to make another weblog call to display to fields C and D from the same weblog entries displayed in the random call earlier on the page.
Seem like in both cases that secret is to pass the entry ID’s from the first call into the entry_id=”” parameter in the second call.
I’ve considered a bunch of ways to do this but haven’t come up with anything that I think will work. Seems like the secret lies somewhere in the EE parse order.
Was hopeful that exp:query would help but did not in my implementation.
Would prefer not to have to write the SQL query in PHP if there is “an EE way”. Am thinking that passing variables through an embed might work as well. Neither of these solutions seem very elegant.
Anybody handled something similar before?
This is in EE 1.6.8.
Many thanks!