ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Entry IDs from array

February 16, 2010 7:22pm

Subscribe [2]
  • #1 / Feb 16, 2010 7:22pm

    jorlee90

    7 posts

    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

    Rob Sanchez

    335 posts

    PHP enabled on input:

    {exp:weblog:entries weblog="test" entry_id="<?php echo explode('|', $myArray); ?>" fixed_order="<?php echo explode('|', $myArray); ?>"}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases