WiscWeb - WordPress UW Theme - Shortcode List
This is a list of the known shortcodes that are available for the UW Theme.
- [uw-search-input]
- Allows you to place a search box in a text block of your site. It will utilize whichever search you have set in the Customizer of your project (native WordPress search or Google Custom Search).
- Please note that if you do not have any search set in the Customizer, this will not work.
- [uwmadison_social]
- This will place a list of your social media links in a text block. It will pull from the ones you have listed in the footer of your site via the Customizer.
- This is not customizable. It will show all of the icons you have listed in the footer.
- Please note that there will be a little padding to the left of your icon set. This cannot be removed.
- [uwmadison_contact]
- Similar to the social shortcode, this will place the contact information that you have listed in the footer into a text block. This is drawn from the info you have added to the Customizer.
- This will pull all contact information from the Customizer including campus address, map links, contact email, and contact phone number.
- Please note that this will be slightly indented from the left.
- [uw-rss-feed]
- Pull news content into your site from any RSS feed URL.
- The only required parameter is the URL: [uw-rss-feed url="addurlhere"]
- Other parameter options include listing a title, a description, setting maximum number of posts, and adding a "more" link URL.
- Usage: [uw-rss-feed url="http://rss.example.com/feed.xml" title="Example Title" description="Example description." more-link="http://example.com" max-posts="10"]
- [uwmadison_events]
- A WordPress plugin to interface with the UW-Madison Events Calendar (http://today.wisc.edu)
- The only required parameter is the URL: [uwmadison_events url="addurlhere"]
- Other parameter options include limiting the number of events that show, grouping events based on date, adding in a title, and showing individual event descriptions.
- Usage: [uwmadison_events url="http://today.wisc.edu/events/tag/film" limit=4 grouped=1 title="Film Events" show_description=1]
- Contribute via GitHub - also includes shortcode examples: https://github.com/UWMadisonUcomm/uwmadison_events-wp
- [tribe_event_countdown]
- A feature of the Events Calendar Pro plugin that allows you to place a countdown clock on a page of your site
- First, create an event to count down to. Then, paste the shortcode on a page and pass either the ID or slug of the event into the shortcode to call out the event.
- Other parameter options include adding a title, showing the seconds view, and showing a completion message.
- Slug Usage: [tribe_event_countdown slug="your-slug-here" title="This is your countdown clock title" show_seconds="yes" complete="This event is complete"]
- ID Usage: [tribe_event_countdown id="392" title="This is your countdown clock title" show_seconds="yes" complete="This event is complete"
- More information can be found here: https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/#countdown-shortcode
- [back-to-top]
- This shortcode will allow you to add a link in a text area that jumps a user up to #main. It will bring the screen up to the top of the content area.