• Resolved mmarchant

    (@mmarchant)


    I want to keep the default event list formatting for my homepage but on the single event post page I want to override the [event_list} formatting.

    I am trying to bring up the other events beside the single event post. Is there an easy way to do this? I didn’t want to use widgets unless there is an easy way to do it.

    This is what I have in the Single event page format.
    <table width=”100%”>
    <tr>
    <td width=”70%” valign=”top”><h3>#_EVENTNAME</h3>
    Date/Time<br/>
    Date(s) – #_EVENTDATES<br /><i>#_EVENTTIMES</i>
    </p>
    {has_location}
    <p>
    Location<br/>
    #_LOCATIONLINK
    </p>
    {/has_location}

    <br style=”clear:both” />
    #_EVENTNOTES
    </td>
    <td width=”5%”></td>
    <td width=”25%”>
    <h3>Upcoming Events</h3>

    [events_list category=”events” limit=10]</td>
    </tr>
    </table>

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Very easy!
    If you just use [events_list] it will output what you provided in the settings.

    Anything you put between the shortcode brackets will override the content, but keep the arguments:

    [events_list]your new markup[/events_list]

    https://wp-events-plugin.com/documentation/shortcodes/

    Thread Starter mmarchant

    (@mmarchant)

    I thought it should be easy too but I tried this several times but it keeps repeating same event that I am viewing. It won’t bring in the other events from the category. What am I missing?
    [events_list category=”events” limit=”10″]#_EVENTDATES #_EVENTLINK <br/>[/events_list]
    https://www.it3tek.net/opmh.org/events/9496/

    You could add a side bar to your single events page and include the Events widget

    Thread Starter mmarchant

    (@mmarchant)

    Unfortunately, I’m not sure how to do that. I can do it if I know exactly what code to add and where to put it. ??

    category=”event” is not a valid argument. You are already fetching events, so that makes no sense at all.

    The category needs to be the event category ID.
    Please read: https://wp-events-plugin.com/documentation/event-search-attributes/

    Thread Starter mmarchant

    (@mmarchant)

    I had categories called “events” and “announcements”. I since deleted the categories and just have all the events without a category. I call this shortcode on the homepage [events_list limit=10] and it brings up all my events. If I use that same shortcode in the formatting under “Single event page format” [events_list limit=10]#_EVENTDATES #_EVENTLINK <br/>[/events_list] it just repeats the same event I a viewing.
    https://www.it3tek.net/opmh.org/events/9496/
    It really doesn’t make sense why it is doing this. I guess I will have to try and add the events widget somehow on that single events page. I’m just stuck on that for right now.

    Thanks for your input. If you have any other ideas I appreciate it.

    *sigh* you’re mixing things up!!!
    OR format things in the events list and call that with the shortcode. OR format within the shortcode. DO NOT USE THE SHORTCODE IN THE EVENT FORMATTING!
    The settings page is meant to specify the formatting of a single event. Calling it with the shortcode, will then output all of them.

    And no matter what you call you category, the argument is for the ID and not the name. As stated clearly in the documentation.

    In your settings:
    Format the output for ONE SINGLE event. Then anywhere on your blog you can call that by using the shortcode and voilà it will work.

    A shortcode is never meant to be used in the settings.

    Thread Starter mmarchant

    (@mmarchant)

    Ugh, I guess I just don’t have enough experience to quite get this working. I will take out the shortcode in the event formatting, just thought that may work. The events manager really doesn’t give you the options like posts do for a blog. In posts I can choose sidebar layouts which makes things easier. Thanks for your help though. I don’t want to take up anymore of your time. ??

    Thread Starter mmarchant

    (@mmarchant)

    SOLVED. Now that I know it won’t work in the formatting area, I just added the shortcode to each event. A little extra work but it works.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Override default formatting for [events_list]’ is closed to new replies.