Redirect shortcode

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 »

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 »

Gallery shortcode

The [gallery] shortcode allows you to embed thumbnail images and captions that link to other pages. See also “The WordPress Gallery” The easiest way to implement a gallery is to insert the shortcode, [gallery] into the page, and then save the page. The WYSIWYG editor will then show a box with “No items found” Clicking… Read more »

Course Catalog Tie-in

Details gleaned from Cory’s plugin at: https://github.com/gsuAE-Doc/gsu-wordpress/pull/54/files Test page: http://corydwatson.com/work/aysps/gsu-wordpress/testing-plugin/ Pulls JSON data from:  http://catalog.gsu.edu/law20142015/api/course/law_5001  List of all courses in catalog at: http://catalog.gsu.edu/law20142015/api/course/  Test script: <?php   $cnt = json_decode(file_get_contents(‘http://catalog.gsu.edu/law20142015/api/course/’), true);     foreach ($cnt as $elem => $val) {           echo $val[’subject’] . ‘ ‘ . $val[’course_number’] . ‘ – ‘ . $val[’title’] …. Read more »

Accordion

Accordion short codes (updated 3/28/14)[1] Use: [accordion][item title=”title1″] tab content [/item][item title=”title2″] another content tab [/item][/accordion] In the editor drop-down selector, “Accordion group” and “Accordion item” are under category “layout” “Accordion group” puts in the [accordion][/accordion] tags “Accordion item” puts in the [item title=”title1″] tab content [/item] content You can embed more than one group per page,… Read more »