November 15, 2014 - How to, Shortcodes

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'] . '<br />';

        }

?>

Comments are closed.