A simple shortcode that will send the user to another page instead of showing the page in which this code is embedded. Usage: [redirect to=http://address.of.page] You can also use “url=” instead of “to=”. If used inside a [show_content] shortcode, you can schedule a page to “expire” with a redirect to a replacement page. Note that… Read more »
Posts Categorized: Shortcodes
CoL Theme shortcodes
CoL Theme Shortcodes[1] We want to avoid theme-based shortcodes.[2] The shortcodes defined in the theme are: [gallery] $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => $post->ID ); [button] ‘type’ => ‘default’, /* primary, default, info, success, danger, warning, inverse */ ‘size’ => ‘default’, /* mini, small, default, large */ ‘url’… Read more »
Buttons shortcode example – CoL Theme
The buttons are (unfortunately) defined in the CoL theme shortcode: [button type=”type” size=”size” url=”address” text=”button label text”] Since this site has all shortcodes disabled in Posts, the “live” example is on a page located at insidelaw.gsu.edu/documentation/buttons/
Video Gallery [KGVID] shortcode
Video Gallery [KGVID] shortcode From Video Embed & Thumbnail Generator Normally, this tag alone will display all videos attached to the page/post. This tag will be inserted with the “Add Media” button over the WYSIWYG editor. To further modify the way the video player works, add the following options inside the `[KGVID]` tag. These will… Read more »
Committees – Faculty
Faculty committees are places in the “committee” custom content type via the admin left nav menu entry Each committee in each year gets it’s own separate committee “page” The Title of the committee should be: Name of Committee – FY#### where #### is the 4-digit year The content of the committee “page” will be the names… Read more »
category_list shortcode
[category_list cat_type=”category”] Makes a simple, alphabetized bulleted list of all the categories of a particular type. Especially useful for custom content type categories, where a category page does not seem to be automatic… As of 9/30/14, the following custom cat_type entries are valid: audience category* committee_name committee_year division event-categories event-tags externship_category externship_semester externship_type following_users forum… Read more »
user_meta shortcode
[user_meta] shortcode Displays user meta data in a user-defined template Note that the Formidable Pro plugin also has a [user_meta] that is internal to set the default value of a field. The user metadata is stored in the “wp_usermeta” table – this is a standard WP table, but any amount of user data can be… Read more »
list_all_shortcodes
Simple shortcode to list all defined shortcodes [list_all_shortcodes] This must be embedded in a page on the site that you want the short codes from! For example, see all the shortcodes on the main InsideLaw site The first column is the short code that goes into the page, the second column is internal techo-babble -… Read more »
embed_menu
Places a navigation menu anywhere on a page. You can specify a menu by it’s name or ID number: [embed_menu] [embed_menu menu=”my_menu”] [embed_menu menu=13] ID number can be seen by going to “Appearance” -> “Menus” -> “Select a menu to edit:” and check the /” dummy=”menu=## in the address [embed_menu] without specifying which one shows… Read more »
show_content at scheduled times
Schedule to show_content shortcode NOTE: BUG – causes a 502 Bad Gateway error (PHP SIGSEGV – core dumped) error is embedded within an Events Manager Pro page. Allows a section of a page to be shown on the web site only during a specified time period. Note that entire posts can be scheduled to appear with… Read more »