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.

Issues sorting entries by month and limiting to 2 displayed

September 02, 2014 12:42pm

Subscribe [1]
  • #1 / Sep 02, 2014 12:42pm

    LI Pulse

    2 posts

    I have a parameter set that displayed entries tagged as “featured” (via a radio button in the article template), then displays two random entries from the current month. Due to some issue with the code it was displaying previous months as well, but now in trying to fix it I have the current month working, but now showing ALL flagged entries. I’m trying to limit it to only 2 random entries for the month, I can seem to get one working, or the other.

    The page in question:
    http://www.lipulse.com/index/index2014
    (the area right below “Today’s News” is the section being referred to).

    The code currently being used:

    {exp:channel:entries channel="art-music|dining-nightlife|trends|real-estate-home|health-beauty" search:featured-article="yes" display_by="month" limit="1" orderby="random" sort="desc"}

    I’m running EE v 2.6.1 if that matters
    Thanks in advance for any help!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases