Support » Fixing WordPress » [Plugin: Events Calendar] Display Event List without Widget?

  • Hi guys,

    Need a little help.

    I wish to display the event list below my events calendar in the sidebar.

    Currently I’m using <?php sidebarEventsCalendar();?> to display the main calendar, but have very little PHP knowledge and can’t figure out how to display the list.

    I can’t use widgets as they conflict with some other parts setup in the theme.

    Any help would be appreciated.

    Thanks.

    (Also having lots of trouble styling anything with CSS, driving me mad!)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter chopeh

    (@chopeh)

    Nobody? 🙁

    Just add the folloing with plugin-editor to your events calendar-plugin at the bottom (before ?>).

    function SidebarEventsList($d){
    $calendar= new EC_Calendar();
    $calendar->displayEventList($d);
    }

    then add SidebarEventsList(5) to your sidebar (5=number of events)

    Hmm, thanks kodi for the help. I’ve been looking for a solution to this for a few hours now. I’m wondering though where exactly in the sidebar.php file to put “SidebarEventsList(5)”?

    I tried adding it at the very top, that didn’t work.
    So I put it inside the <div id=”sidebar”>, that didn’t work either.

    It would appear that some of the actual php code is missing from this statement. I toyed around a bit until I finally came up with this:

    <div class=”sideblock”>
    <h3>Event Calendar</h3>
    <?php SidebarEventsList(5);?>
    </div>

    I added that inside the main div and it worked! The only problem is it looks like crap! What would be an easy way to add the date of each event that?

    Okay I finally figured this out.

    Chopeh if you haven’t figured out the php and divs by now here is the code you need to place in your sidebar.php theme-editor file. Make sure you place it inside the <div id=”sidebar”> or it won’t be aligned correctly and may screw the whole page up. Good luck:

    <div class=”sideblock”>
    <h3>Event Calendar</h3>
    <?php sidebarEventsCalendar();?>
    </div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Events Calendar] Display Event List without Widget?’ is closed to new replies.