I have an array like [325,300,314]
How could I use those values to query entry_ids in the same order?
Like:
{exp:weblog:entries weblog="test" entry_id="myArray"}This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
February 16, 2010 7:22pm
Subscribe [2]#1 / Feb 16, 2010 7:22pm
I have an array like [325,300,314]
How could I use those values to query entry_ids in the same order?
Like:
{exp:weblog:entries weblog="test" entry_id="myArray"}#2 / Feb 16, 2010 8:17pm
PHP enabled on input:
{exp:weblog:entries weblog="test" entry_id="<?php echo explode('|', $myArray); ?>" fixed_order="<?php echo explode('|', $myArray); ?>"}