ART299 Notes & The Big Web Show, Podcasting, and Other.

Json

http://299kh.wordpress.com/wp-json/wp/v2/posts” does not work, but “http://apurie.com/test17/wp-json/wp/v2/posts” works. This is due to some capability is not available to WordPress.com users, but it is available for users who hosts WordPress on their servers such as Bluehost.com.

 

The Big Web Show Hosted by Jeffrey Zeldman

http://5by5.tv/bigwebshow/163

http://thewebahead.net/ podcasting.

https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/  (routs and endpoints and namespace)

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest

var oReq = new XMLHttpRequest();
oReq.open("GET", url);
// retrieve data unprocessed as a binary string
oReq.overrideMimeType("text/plain; charset=x-user-defined");
/* ... */

HTTP Methods-

The main ones used by WordPress REST API are:

  • GET should be used for retrieving data from the API.
  • POST should be used for creating new resources (i.e users, posts, taxonomies).
  • PUT should be used for updating resources.
  • DELETE should be used for deleting resources.
  • OPTIONS should be used to provide context about our resources.

https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/ (WordPress REST API)

https://premium.wpmudev.org/blog/wordpress-rest-api/
(The REST API (and How It Could Change WordPress Forever))

Difference of placing feature image instead of regular image.

WordPress Function Reference

WordPress Function Reference
HTTP API Functions
WordPress_Lessons

Chris’s Notes

WordPress
– wp core functions
– instead of display posts shortcake (plugin), how to use php to display list of posts by category via raw php?
– learn how to create custom php “page templates” (built into wp core)

JSON
– Test #1: local JSON parse from the head & display in the body test (all in one html file)
– in the head, put inline json
– in the body, use js to parse and display data
– Test #2: remote JSON parse from GitHub json file & display in my local html file
– in the body, use js to get json data from GitHub then parse and display data on my local file
– Test #3: remote JSON parse from WordPress json file & display in my local html file
– in the body, use js to get json data from WordPress then parse and display data on my local file

 

I will go back to processing exercise tomorrow.

Advertisements