More than 10 item in event+ nexts event widget

I, i would like to display more than 10 item in event+ nexts event widget. Is anyone know where can i change this value ?

  • Luís

    Hi Frédéric ,

    Hope you're doing well today!

    I think you will need to change the plugin's core file.

    1) Using FTP access, go to "wp-content/plugins/events-and-bookings/lib/widgets" and download the "Upcoming_Widget.class.php" file;

    2) Close to the line 160, you will find this code:

    <?php for ($i=1; $i<=10; $i++) { ?>
    						<?php $selected = ($i == $options['limit']) ? 'selected="selected"' : ''; ?>
    						<option value="<?php echo $i; ?>" <?php echo $selected;?>><?php echo $i;?></option>
    					<?php } ?>

    3) Change the loop to a number you want, in this case we will limit to 15:

    <?php for ($i=1; $i<=15; $i++) { ?>
    						<?php $selected = ($i == $options['limit']) ? 'selected="selected"' : ''; ?>
    						<option value="<?php echo $i; ?>" <?php echo $selected;?>><?php echo $i;?></option>
    					<?php } ?>

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís