Title: Creating Custom Widget
Last modified: July 25, 2017

---

# Creating Custom Widget

 *  Resolved [mau](https://wordpress.org/support/users/himanshuahuja93/)
 * (@himanshuahuja93)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-widget/)
 * How can i create a custom widget using code,is there is any snippet available?
   
   Basically i want to create some what like [https://alumni.lpu.in/](https://alumni.lpu.in/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-widget/#post-9349970)
 * What do you want the widget to do?
 *  Thread Starter [mau](https://wordpress.org/support/users/himanshuahuja93/)
 * (@himanshuahuja93)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-widget/#post-9352158)
 * Just to Display the Events upcoming within a Month or two!! Here is an example
   [https://alumni.lpu.in/](https://alumni.lpu.in/)
 * Thanks in advance
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-widget/#post-9353652)
 * In that case, the easiest way would be to use a shortcode like the one below 
   in a text widget.
 *     ```
       [events_list scope=" 2-months"]
       ```
   
 *  Thread Starter [mau](https://wordpress.org/support/users/himanshuahuja93/)
 * (@himanshuahuja93)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-widget/#post-9353953)
 * Basically i want to edit the template and of the event widget that what i mean
   to say…Main purpose of that is to make the widget look like the above mention
   one by customizing the template file itself..
 * `[events_list scope=" 2-months"]`
 * Is returning the result in table
 * Regards
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-widget/#post-9357929)
 * You can customize the output of the shortcode by adding a closing tag and using
   the tags and formatting you want between them. Like this:
 * [events_list scope=”2-months”] #_EVENTLINK [/events_list]

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Creating Custom Widget’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [customization](https://wordpress.org/support/topic-tag/customization/)
 * [feature](https://wordpress.org/support/topic-tag/feature/)
 * [snippet](https://wordpress.org/support/topic-tag/snippet/)

 * 5 replies
 * 2 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/creating-custom-widget/#post-9357929)
 * Status: resolved