• sirfwaqas

    (@sirfwaqas)


    Hi,

    I have table of event list for future events and now I created a separate page for showing past events list but I want to use the same table formatting as I have for future events.

    Any idea? I am using shortcode for past events list [events_list scope=”past” order=”DESC”]

    Future event
    <table cellpadding=”0″ cellspacing=”0″ class=”events-table” >
    <thead>
    <tr>
    <th class=”event-time” width=”150″>Date/Time</th>
    <th class=”event-description” width=”*”>Event.</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>
    #_EVENTDATES
    #_EVENTTIMES
    </td>
    <td>
    </tbody></table>

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The best approach is probably to alter the shortcode handler. If that’s impractical, copy it and edit the copy, assigning a new name to use instead.

    To locate the shortcode handler, locate a line of code that looks something like this:
    add_shortcode('events_list', 'handler_function_name');
    except ‘handler_function_name’ will be a different name, the name whose function declaration you need to find.

Viewing 1 replies (of 1 total)
  • The topic ‘Event list –’ is closed to new replies.