To set up a listing of events, include one or more of the following short codes. These are meant to be used in a standalone page, rather than a blog post.
The Events page on this website uses two shortcodes. The first one sets up the calendar that appears at the top of the page. The second one sets up the loop for displaying upcoming events.
[rsvpmaker_upcoming no_events=”Check back soon.”]
[rsvpmaker_upcoming calendar=”1″] displays the calendar, followed by the index of upcoming events.
[rsvpmaker_upcoming type=”featured”] Displays only the events of the specified event type (“featured” type available by default as a checkbox on the event editing screen).
You can also use:
I often use this on the front page of a website where I want a simple events listing. The output looks like this:
- Cub Scout Camping Trip Friday May 27, 2022
- Sunday Speaker Salon Sunday May 29, 2022
- Computers for Kids Monday May 30, 2022
- Neighborhood Association Meeting Wednesday June 1, 2022
- Sunday Speaker Salon Sunday June 5, 2022
- Computers for Kids Monday June 6, 2022
- Cub Scout Camping Trip Friday June 10, 2022
- Sunday Speaker Salon Sunday June 12, 2022
- Computers for Kids Monday June 13, 2022
- Sunday Speaker Salon Sunday June 19, 2022
RSVPMaker also provides a widget you can use to display upcoming events in your sidebar.
Update for version 2.5.5
The rsvpmaker_upcoming shortcode now accepts limit=”x” (show x number of events) as an attribute. Example [rsvpmaker_upcoming limit=”3″] would retrieve a maximum of 3 posts.
You can also use add_to_query=”myquerystring” to modify the query using query_posts() query string syntax. Example: [rsvpmaker_upcoming add_to_query=”p=99″] would retrieve a single rsvpmaker post with the ID of 99. This appends the parameters you provide to the default query string, so the whole thing would be something like post_type=rsvpmaker&post_status=publish&p=99.