Support » Plugin: Event Organiser » Events won’t display anymore

  • Resolved Marcel Oerlemans

    (@marceloerlemans)


    Hello,
    I am experienced with WordPress but now I encounter a problem that I cannot solve.
    For my band I placed all the old events with the Events Organizer plugin and I want to display them with a table. That went perfectly, until I tried to add codes as %event% and %event_number% (to display a number in front of the title)
    The page now looks like this: https://persistense.nl/test/ But there should be 140+ events …

    The code I used is:

    [eo_events orderby=”eventstart” order=”DESC” showpastevents=”TRUE”][/eo_events]
    <table>
    <tbody>
    <tr>
    <th>Title</th>
    <th style=”width: 120px;”>Date</th>
    <th style=”width: 270px;”>Venue</th>
    </tr>
    <tr>
    <td>%event_title%</td>
    <td>%start{jS M Y}%</td>
    <td>%event_venue% – %event_venue_city%</td>
    </tr>
    </tbody>
    </table>

    Can anyone help me with this? Thanks!

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Sorry I found out my code was wrong, I fixed it now 🙂

    manuart72

    (@manuart72)

    Helo Marcel !

    Can you explain where the error was in the code above, I am trying to figure out how to build a table like you but so far I haven’t found the way to get it to work.

    I would appriciate any help, thanks!

    manuart72

    (@manuart72)

    I think I got it, you did something like this ?
    <table>
    <tbody>
    <tr>
    <th>Title</th>
    <th style=”width: 120px;”>Date</th>
    <th style=”width: 270px;”>Venue</th>
    </tr>
    <tr>
    [eo_events orderby=”eventstart” order=”DESC” showpastevents=”TRUE”]
    <td>%event_title%</td>
    <td>%start{jS M Y}%</td>
    <td>%event_venue% – %event_venue_city%</td>
    </tr>
    [/eo_events]
    </tbody>
    </table>

    Marcel Oerlemans

    (@marceloerlemans)

    Hi Manuart,

    The code I now use, which works perfect for me, is:

    <h2>Future events</h2>
    <table><tr><th>Title</th><th style="width: 150px;">Date</th><th style="width: 300px;">Venue</th></tr>
    [eo_events orderby="eventstart" order="ASC" showpastevents="FALSE" showfutureevents="TRUE"] <tr><td><a href="%event_url%">%event_title%</a></td><td>%start{jS M Y}%</td><td>%event_venue% - %event_venue_city%</td></tr> [/eo_events]</table>
    
    <h2>Past events</h2>
    <table><tr><th>Nr</th><th>Title</th><th style="width: 150px;">Date</th><th style="width: 300px;">Venue</th></tr>
    [eo_events orderby="eventstart" order="DESC" showpastevents="TRUE" event_start_before="now"] <tr><td>%event_custom_field{Number}%</td><td><a href="%event_url%">%event_title%</a></td><td>%start{jS M Y}%</td><td>%event_venue% - %event_venue_city%</td></tr> [/eo_events]</table>

    @marceloerlemans

    Thanks for confirming, I see I have another problem. eo_events also outputs some bulleted list that destroys the output. If I have 10 posts in my table then I see 10 bullets (like in bulleted lists) before the table in the webppage.

    Did you experience the same, did you have to edit the classes for the plugin ?

    Hello @manuart72
    I had the same issues, solved it with the following CSS code:
    li.eo-event-past, li.eo-event-future {display: none;}
    Best of luck!
    Regards, Marcel

    Hi!

    Thank you Marcel for taking time to respond. It has been a while since I fiddled around with CSS so it did not immidiately occur to me that there exist such an easy and brilliant solution to the problem. Thanks again for the heads up!

    Best regards
    Magnus

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