9/21/2023 0 Comments Wordpress shortcode![]() ![]() Would become alternate events link text ĭisplays the events page url (e.g. If you add text in between opening and closing shortcode tags, it will become the link text, like so:Īlternate events link text ĭisplays a text link which links to the events page. An events page must be selected in Events > Settings > Pages > Event List/Archives in order for this to work properly. ĭisplays the same search form you see on your default events page. You can also assign a page for adding events, locations and managing bookings within Events > Settings > Pages > Other Pages in your WordPress admin area. ![]() ĭisplays a form where users can submit event and location information outside the WordPress admin area. This will show the event with post ID 123, and replace #_EVENTNAME with the name of this event. This shortcode requires the post_id OR event attribute, however, if used within an event description and none of these attributes, it will automatically use the event the description belongs to (useful for showing event placeholders within an event description). The above will display events grouped by month occurring in the United States and may look like this:ĭisplays a single event. If you enter html and placeholders within the shortcode, the event will be formatted this way (note that you should add your html using the HTML tab of the WordPress content editor). Accepts any of the event, location and general search attributes. #_EVENTLINK - #_EVENTDATES at #_EVENTTIMES date_format : PHP date formatting string for the headers (see php date() documentation for reference and examples).mode : Decides how to split events up, possible options are : yearly, monthly, weekly, daily.If you enter html and placeholders within the shortcode, each event will be formatted this way (note that you should add your html using the HTML tab of the WordPress content editor). Accepts any of the event, location and general search attributes as well as the following: ĭisplays a list of events grouped by a specific time frame (e.g. The above will display events occurring tomorrow in the United States in a paragraph format. #_EVENTLINK will take place at #_LOCATIONLINK on #_EVENTDATES at #_EVENTTIMES If you enter html and placeholders within the shortcode, each event will be formatted this way (note that you should add your html using the HTML tab of the WordPress content editor). Accepts any of the event, location and general search attributes. You can even include shortcode within event and location descriptions! Event Shortcodes ĭisplays a list of events. Just insert one of the following shortcodes into any of your posts/pages. #_EVENTNAME Įvent information can also be displayed through shortcode. In some cases, you can also include text within a shortcode opening and closing tag, which is used to format the output on your page, e.g. For more information on shortcodes in WordPress, see the codex about shortcode. Shortcodes are in this format:Īrguments are what follow “shortcode” above, where “limit” would be one of the argument names and “10? would be the value of that argument. Shortcode is a WordPress-specific code that lets you do nifty things with very little effort. ![]() This article has been migrated from our old documentations site, pending review and update. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |