Posted: August 17, 2016 at 7:25 am
I would like to show a widget on the homepage. This widget pulls in a limited amount of events and displays them in the layout. The list template is put in a custom plugin.
I used this template as a basis but cannot find where i can limit the amount of events shown in the list.
You will want to remove this code from the plugin:
The widget allows you to select the amount of events shown within the widget settings – http://take.ms/Zehui
Is that not what you are looking for?
Wow yeah, that was a bit more code then expected. 🙂
I’ll make sure next time to use pastbin.
I figured it out. All i had to change in the code was 10 to 3 😛
Thanks for looking into it anyway.
The support post ‘Loading a custom number of events in a widget’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.