How to add a Simple WP Events widget on the homepage or sidebar using shortcode?

No doubt, the homepage is an essential tool for your business and often serves as the first impression to potential customers. By adding the Simple WP Events widget on the homepage or sidebar, you can grab your user’s attention more easily. 

Simple WP Events provides shortcodes to make this easy for you. All you need to do is to paste the shortcode into the respective section. 

Shortcode

Upcoming Seminars
! There was some problem with your submission. Please review the fields below

Subscribe With Us

There are currently no seminars scheduled, but please fill out the form below and we'll be sure to notify you of upcoming seminars.

This field is required
This field is required
This field is required. Please enter a valid email address.
Captcha not found.

Navigate to WordPress Dashboard > Select pages or sidebar widget 

You can customize the shortcode using the following list of attributes:

  • number: Set no. of events you want to display in the widget. (default = 3)
  • button_text: Update the button text of the widget. (default: See All (title))
  • location: Show/Hide event location in widget. (default: true)
  • archive: Show/Hide the link to the events archive page. (default: true)
  • date: Show/Hide event date from the widget. (default: true)
  • class: Add a custom class to the widget section. (default: empty)
  • category: Display events from a specific category by using category ID. (default: empty – showing events from all categories.)
  • type: Show events from a specific type (seminar/webinar/client-event/other-event). (default: empty – shows all events)
  • exc_type: Hide events for a specific type (seminar/webinar/client-event/other-event). (default: empty – shows all events)
  • single-button: Show button for each event linking to the single event page. (default: false)
  • single-button-text: Change the text for the single event button. (default: Register)

Example display on front-end when you are done: 

You can leave the attributes blank if you want to style this according to the theme. 

Was this article helpful?

Related Articles