• On the referenced web page I have two events on December 5, one at 6 p.m. and one at 8:30 p.m. The 8:30 event appears before the 6 p.m. event. How can I get the 6 p.m. event to appear first? I’ve tried sequencing the publishing dates, but that doesn’t help.

    Thanks.

    • This topic was modified 4 months, 1 week ago by James Huff. Reason: redundant link removed

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @bob1928,

    It’s not clear to me what is generating the events list. I don’t see an events plugin on your site and it doesn’t look like a block.

    Just to cover our bases here, have you flushed all caches? Have you tried re-saving the events if they are posts?

    Do you know how the events are being queried for the event list? In general, can you provide more specific info regarding how the events are being created and how the events page (from the WordPress API it does look like the we are dealing with a WordPress page) is being rendered/created?

    Thanks!
    John

    Thread Starter bob1928

    (@bob1928)

    In the theme editor, there is a file named archive-events.php that looks like it controls the order. Here is the code:

    $args = array (
    ‘post_type’ => ‘events’,
    ‘orderby’ => ‘meta_value’,
    ‘meta_key’ => ‘event_date’,
    ‘order’ => ‘ASC’,
    ‘meta_query’ => array(
    array(
    ‘key’ => ‘event_date’,
    ‘compare’ => ‘>=’,
    ‘value’ => $today,
    ),
    ),

    );

    I’m wondering if there is any way to add a event time value to the event record.

    Thanks, Bob

    Hey Bob,

    You certainly could include a time of the events in the meta data. It does seem odd that the ‘event_date’ wouldn’t already include the time, especially if you are entering the time for the event, as it would be normative for a developer to include the time when things are ordered by date.

    One would need more info and a behind the scenes look at your site to figure this out, honestly, and that is probably something that is not entirely appropriate in this forum.

    I would advise you to contact the theme creator or get some development help as your best option.

    Best,
    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.