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 »

Hiding pages from search results

Hiding pages from search results On InsideLaw, pages can be hidden from appearing in the built-in WordPress search results by adding the id# of the page/post to a comma-separated list in the site settings. First, you need the post number (post=####)  that can be found in the URL of the edit page for that post…. Read more »

Custom content and taxonomy

Custom post types (such as “externship”) are created by CCTM Custom taxa are created with the WCK – Custom Fields and Custom Post Types Creator[1] A few hard-learned points: for publish/edit/delete capabilities, on the CCTM “Advanced” tab, set only the “Capability Type” as a singular noun name and do not check “Map Meta Cap” or… 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 »

Web Alerts from gsu.edu

NOTE: 3/10/2015 – Found that the University has re-configured their server to deny access to the cached notification page: “Forbidden – You don’t have permission to access /wp-content/cache/rave-alert/index.html on this server.” Disabled the cron job – no time for such games. {ead} Notices that are displayed on gsu.edu are retrieved (once every 2 minutes), cached, and… Read more »

login_jump

login_jump[2] is used to redirect to laws.gsu.edu and log in the WordPress user into Contentor/agora Usage: [login_jump url=”http://laws.gsu.edu/agora/index/My_WebCourses”] The script adds the WordPress username and a “token” hash code that is good for 1 minute (technically it is good for 3 minutes in case the two server’s clocks are off by up to a minute.)… 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 »