WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Limit Number of Events Displayed in Sidebar (4 posts)

  1. jonrr52
    Member
    Posted 3 years ago #

    Hi All,

    I noticed a couple of incomplete posts on this topic and am surprised to see there isn't better documentation.

    Does anyone have a block of code that can be edited to change the display on a page, etc. from a default of 5 to something else?

    Thanks in advance,
    Jon

  2. feneblog
    Member
    Posted 2 years ago #

    You could change it to 10 by going to the widget and configure it.

    If you need more, you could try to change the "views/events-list-load-widget-admin.php" file from

    <?php for ($i=1; $i<=10; $i++)

    to 20 or what ever you need

    <?php for ($i=1; $i<=20; $i++)

  3. jonrr52
    Member
    Posted 2 years ago #

    Thanks feneblog, appreciate your response. Exactly what I needed.

    Cheers,
    JR

  4. zab
    Member
    Posted 2 years ago #

    Hi,
    I am wanting to reduce the number of events in sidebar too and cannot find the "views/events-list-load-widget-admin.php" file.
    Can you help?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic