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.

Problem with orderby and entry_date

March 12, 2012 12:20pm

Subscribe [1]
  • #1 / Mar 12, 2012 12:20pm

    Scott-Parks

    14 posts

    Hello

    I have a small problem with an event listing that I’m building.  I’m trying to order my list of events by event name, but for some reason the entry_date always takes precedence in the ordering.

    For example, I have an event that I did the entry for back in December of 2011. That entry always shows up first on the list because it was the first event I entered and therefore has the earliest entry_date.

    Here is what my entries tag looks like:

    {exp:channel:entries channel="events" orderby="{event_name}” sort=“asc” show_future_entries=“yes” dynamic=“no”}

    Regardless of the orderby=”{event_name}”, the one entry that has a really early entry_date shows first on the list, even though its name begins with “B”.  Other events that start with A show up below this first entry.

    I’ve tried using the disable= parameter in the entry tag to be disable=”{entry_date}”. But that does not seem to work.

    Am I doing something wrong with orderby?  Is orderby entry_date the default?  Is there a way to turn that off?

    Thanks in advance for any thoughts.

  • #2 / Mar 12, 2012 2:34pm

    Scott-Parks

    14 posts

    Sorry, problem solved.  Rookie move. 😊  Didn’t need the { } around the event_name.

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

ExpressionEngine News!

#eecms, #events, #releases