SlideShare a Scribd company logo
1
WordPress, WP-API
And Client Side
Applications
Roy Sivan Twitter/Github - @royboy789 roysivan.com | arcctrl.com
There will be code
There will be learning
There will be memes
Be Warned
WordCamp San Diego 2015 - WordPress, WP-API, and Web Applications
WE ARE AWESOME
WordPress developer at
Disney
and the co-founder of
My first install of WordPress was
0.7 and been a user &
developer since
Roy Sivan Twitter/Github - @royboy789 roysivan.com | arcctrl.com
Who is this geek?
Why build Web Applications
with WordPress?
Why not?
HOW?
WP
Very nice!
Client Side?
Client = Browser
POP QUIZ
What is the fastest file a web server
can serve?
CLIENT VS. SERVER SIDE - REQUESTS AND RESPONSE
One request to rule them all
“I want my blog posts”
SERVER CLIENT
PHP is the language behind WordPress
SERVERCLIENT
Client: Sends request for index.php
Server: Processes PHP code turning it into HTML.
Returns full HTML
Benefits of Loading Client Side
Less load on the server
CDN all template files
Easier to cache JS and HTML
VERY Scalable
AJAX - can transform your UI / UX
Single Page Web Application
S.P.A
Code Example: Server Side Loop
<?php
//list all posts - this is PHP & HTML
while ( have_posts() ) : the_post();
?>
<article class="postWrapper">
<h3 class="page_title text-center">
<a href=“<?php the_permalink(); ?>” class="content">
<?php the_title(); ?>
</a>
</h3>
<?php the_content(); ?>
</article>
<?php
endwhile;
?>
Living on the client side
Code Example: Client Side Loop
(using AngularJS)
//list all posts - this is HTML
<article class="postWrapper" ng-repeat="post in posts” >
<h3 class="page_title text-center">
<a href=“/coh/#/post/{{post.ID}}” class="content">
{{post.title}}
</a>
</h3>
{{post.content}}
</article>
AngularJS - the important bits
<?php the_title(); ?>
PHP AngularJS HTML Template
{{post.title}}
<?php the_content(); ?> {{post.title}}
<?php the_permalink(); ?> {{post.link}}
WP-API Response Example
/posts - WP-API endpoint
{
ID: 1
content: '<p>Welcome to WordPress. This is your first post. Edit or
delete it, then start blogging!</p>',
title: 'Hello world!',
status: 'publish',
author : {..},
...
},
…
ASK NOT HOW, but WHY?
Case Study: Client
Client
WordPress for:
Users

User Authentication

Custom Post Types

Data Storage
WP-API / S.P.A for:
DOM Memory

User Profiles

Inline Commenting

Inline Bookmarks
Case Study: CodeCavalry
CodeCavalry.com
WordPress for:
Users

User Authentication

Custom Post Types

Data Storage
S.P.A for:
Session (CPT) Create

Firebase - WebSocket

User Dashboard

User Profiles
Awesome Resources
Roy Sivan Twitter/Github - @royboy789 roysivan.com | arcctrl.com
WP-API on GitHub
https://github.com/WP-API/WP-API
CodeCavalry
http://www.codecavalry.com
AngularJS WP Theme
http://www.roysivan.com/angular-wordpress-theme
AngularJS For WP Plugin
http://www.roysivan.com/angularjs-for-wordpress
Community Built WP App with AngularJS & Slides
http://www.roysivan.com/blog
Thank You
Find me online:
Twitter: @royboy789
Github: @royboy789
CodeCavalry.com/royboy789
Roy Sivan Twitter/Github - @royboy789 roysivan.com | arcctrl.com

More Related Content

PDF
WordPress and Client Side Web Applications WCTO
PDF
Wordcamp Toronto Presentation
PDF
Client Side Applications with WP-API WordPress - WCMTL 2015
PDF
How to build Client Side Applications with WordPress and WP-API | #wcmia
PPTX
The WordPress REST API as a Springboard for Website Greatness
PPTX
Optimizing Your Site for Holiday Traffic
PDF
Building WordPress Client Side Applications with WP and WP-API - #wcmia
PDF
Coding with jetpack
WordPress and Client Side Web Applications WCTO
Wordcamp Toronto Presentation
Client Side Applications with WP-API WordPress - WCMTL 2015
How to build Client Side Applications with WordPress and WP-API | #wcmia
The WordPress REST API as a Springboard for Website Greatness
Optimizing Your Site for Holiday Traffic
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Coding with jetpack

What's hot (17)

PDF
Nürnberg WooCommerce Talk - 11/24/16
PDF
Using WordPress as a Headless CMS
PDF
Intro to WordPress Plugins
PPTX
Creating SmartPhone Apps Using WordPress
PDF
End to-End SPA Development Using ASP.NET and AngularJS
PDF
WordPress as a Headless CMS - Bronson Quick
PPTX
Top 10 WordPress Plugins
PPTX
Welcome to the World of WordPress
PDF
WordPress as a Service
PDF
Way of the Future
PPTX
PDF
Angular js - 10 reasons to choose angularjs
PDF
Develop and Deploy Outside the Repo
PPTX
Building the basics (WordPress Ottawa 2014)
PDF
Node.js to the rescue
PDF
State of the Word 2015, WordCamp US
Nürnberg WooCommerce Talk - 11/24/16
Using WordPress as a Headless CMS
Intro to WordPress Plugins
Creating SmartPhone Apps Using WordPress
End to-End SPA Development Using ASP.NET and AngularJS
WordPress as a Headless CMS - Bronson Quick
Top 10 WordPress Plugins
Welcome to the World of WordPress
WordPress as a Service
Way of the Future
Angular js - 10 reasons to choose angularjs
Develop and Deploy Outside the Repo
Building the basics (WordPress Ottawa 2014)
Node.js to the rescue
State of the Word 2015, WordCamp US
Ad

Similar to WordCamp San Diego 2015 - WordPress, WP-API, and Web Applications (20)

PDF
You Got React.js in My PHP
PDF
Using the new WordPress REST API
PDF
API Technical Writing
PDF
Front End Development for Back End Developers - Devoxx UK 2017
PDF
Plugin development demystified 2017
KEY
Theming websites effortlessly with Deliverance (CMSExpo 2010)
PDF
Integrating Social Apps with Content Driven Sites using Apache Rave and Sprin...
PPTX
API Workshop: Deep dive into REST APIs
PDF
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
PDF
Wordpress beyond blogging
ODP
WordPress as a Platform - talk to Bristol Open Source Meetup, 2014-12-08
PDF
Course CodeSchool - Shaping up with Angular.js
PDF
Schema-First API Design
PPTX
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
PPTX
Faster WordPress Workflows
PPTX
PDF
243329387 angular-docs
PPTX
Extending & Scaling | Dallas PHP
ODP
Introduction to blogging with Jekyll
PPTX
Best Practices for Building WordPress Applications
You Got React.js in My PHP
Using the new WordPress REST API
API Technical Writing
Front End Development for Back End Developers - Devoxx UK 2017
Plugin development demystified 2017
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Integrating Social Apps with Content Driven Sites using Apache Rave and Sprin...
API Workshop: Deep dive into REST APIs
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
Wordpress beyond blogging
WordPress as a Platform - talk to Bristol Open Source Meetup, 2014-12-08
Course CodeSchool - Shaping up with Angular.js
Schema-First API Design
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Faster WordPress Workflows
243329387 angular-docs
Extending & Scaling | Dallas PHP
Introduction to blogging with Jekyll
Best Practices for Building WordPress Applications
Ad

More from Roy Sivan (13)

PDF
WordPress in Enterprise
PDF
Building Gutenberg Applications & WebOPS Case Study
PDF
Building Headless Applications with WordPress & Gutenberg
PDF
Gutenberg & Custom Applications powered by WordPress
PDF
WordPress SFO Meetup - Gutenberg FAQ
PDF
WCSD - GutenWhat? A Gutenberg FAQ
PDF
A Crash Course in WordPress Gutenberg
PDF
Powering Content Driven Applications with the World’s Most Popular CMS #ngconf
PDF
WPCampus Online - The Case for the WordPress REST API
PDF
Angular Remote Conf - Building with Angular & WordPress
PDF
The Case for the WordPress REST API | WordCamp Montreal 2016
PDF
Building a JavaScript App powered by WordPress & AngularJS
PDF
Becoming a WordPress Artisan - Developer
WordPress in Enterprise
Building Gutenberg Applications & WebOPS Case Study
Building Headless Applications with WordPress & Gutenberg
Gutenberg & Custom Applications powered by WordPress
WordPress SFO Meetup - Gutenberg FAQ
WCSD - GutenWhat? A Gutenberg FAQ
A Crash Course in WordPress Gutenberg
Powering Content Driven Applications with the World’s Most Popular CMS #ngconf
WPCampus Online - The Case for the WordPress REST API
Angular Remote Conf - Building with Angular & WordPress
The Case for the WordPress REST API | WordCamp Montreal 2016
Building a JavaScript App powered by WordPress & AngularJS
Becoming a WordPress Artisan - Developer

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Big Data Technologies - Introduction.pptx
PDF
KodekX | Application Modernization Development
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Cloud computing and distributed systems.
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Encapsulation theory and applications.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
sap open course for s4hana steps from ECC to s4
Teaching material agriculture food technology
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Big Data Technologies - Introduction.pptx
KodekX | Application Modernization Development
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
Programs and apps: productivity, graphics, security and other tools
Cloud computing and distributed systems.
Network Security Unit 5.pdf for BCA BBA.
MYSQL Presentation for SQL database connectivity
Encapsulation theory and applications.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
20250228 LYD VKU AI Blended-Learning.pptx
sap open course for s4hana steps from ECC to s4

WordCamp San Diego 2015 - WordPress, WP-API, and Web Applications

  • 1. 1 WordPress, WP-API And Client Side Applications Roy Sivan Twitter/Github - @royboy789 roysivan.com | arcctrl.com
  • 2. There will be code There will be learning There will be memes Be Warned
  • 5. WordPress developer at Disney and the co-founder of My first install of WordPress was 0.7 and been a user & developer since Roy Sivan Twitter/Github - @royboy789 roysivan.com | arcctrl.com Who is this geek?
  • 6. Why build Web Applications with WordPress? Why not?
  • 9. Client Side? Client = Browser POP QUIZ What is the fastest file a web server can serve?
  • 10. CLIENT VS. SERVER SIDE - REQUESTS AND RESPONSE One request to rule them all “I want my blog posts” SERVER CLIENT
  • 11. PHP is the language behind WordPress SERVERCLIENT Client: Sends request for index.php Server: Processes PHP code turning it into HTML. Returns full HTML
  • 12. Benefits of Loading Client Side Less load on the server CDN all template files Easier to cache JS and HTML VERY Scalable AJAX - can transform your UI / UX
  • 13. Single Page Web Application S.P.A
  • 14. Code Example: Server Side Loop <?php //list all posts - this is PHP & HTML while ( have_posts() ) : the_post(); ?> <article class="postWrapper"> <h3 class="page_title text-center"> <a href=“<?php the_permalink(); ?>” class="content"> <?php the_title(); ?> </a> </h3> <?php the_content(); ?> </article> <?php endwhile; ?>
  • 15. Living on the client side
  • 16. Code Example: Client Side Loop (using AngularJS) //list all posts - this is HTML <article class="postWrapper" ng-repeat="post in posts” > <h3 class="page_title text-center"> <a href=“/coh/#/post/{{post.ID}}” class="content"> {{post.title}} </a> </h3> {{post.content}} </article>
  • 17. AngularJS - the important bits <?php the_title(); ?> PHP AngularJS HTML Template {{post.title}} <?php the_content(); ?> {{post.title}} <?php the_permalink(); ?> {{post.link}}
  • 18. WP-API Response Example /posts - WP-API endpoint { ID: 1 content: '<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>', title: 'Hello world!', status: 'publish', author : {..}, ... }, …
  • 19. ASK NOT HOW, but WHY?
  • 21. Client WordPress for: Users
 User Authentication
 Custom Post Types
 Data Storage WP-API / S.P.A for: DOM Memory
 User Profiles
 Inline Commenting
 Inline Bookmarks
  • 23. CodeCavalry.com WordPress for: Users
 User Authentication
 Custom Post Types
 Data Storage S.P.A for: Session (CPT) Create
 Firebase - WebSocket
 User Dashboard
 User Profiles
  • 24. Awesome Resources Roy Sivan Twitter/Github - @royboy789 roysivan.com | arcctrl.com WP-API on GitHub https://github.com/WP-API/WP-API CodeCavalry http://www.codecavalry.com AngularJS WP Theme http://www.roysivan.com/angular-wordpress-theme AngularJS For WP Plugin http://www.roysivan.com/angularjs-for-wordpress Community Built WP App with AngularJS & Slides http://www.roysivan.com/blog
  • 25. Thank You Find me online: Twitter: @royboy789 Github: @royboy789 CodeCavalry.com/royboy789 Roy Sivan Twitter/Github - @royboy789 roysivan.com | arcctrl.com