Building Web Apps with WordPress

Building Web Apps with WordPress

Brian Messenlehner, Jason Coleman

Language: English

Pages: 462

ISBN: 1449364071

Format: PDF / Kindle (mobi) / ePub


WordPress is much more than a blogging platform. As this practical guide clearly demonstrates, you can use WordPress to build web apps of any type—not mere content sites, but full-blown apps for specific tasks. If you have PHP experience with a smattering of HTML, CSS, and JavaScript, you’ll learn how to use WordPress plugins and themes to develop fast, scalable, and secure web apps, native mobile apps, web services, and even a network of multiple WordPress sites.

The authors use examples from their recently released SchoolPress app to explain concepts and techniques throughout the book. All code examples are available on GitHub.

  • Compare WordPress with traditional app development frameworks
  • Use themes for views, and plugins for backend functionality
  • Get suggestions for choosing WordPress plugins—or build your own
  • Manage user accounts and roles, and access user data
  • Build asynchronous behaviors in your app with jQuery
  • Develop native apps for iOS and Android, using wrappers
  • Incorporate PHP libraries, external APIs, and web service plugins
  • Collect payments through ecommerce and membership plugins
  • Use techniques to speed up and scale your WordPress app

Beginning Django E-Commerce

ng-book - The Complete Book on AngularJS

A Web for Everyone: Designing Accessible User Experiences (1st Edition)

Sass and Compass in Action

The Web Designers Idea Book (More of the Best Themes, Trends and Styles in Website Design, Volume 2)

HTML5 24-Hour Trainer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

follow some thought process when deciding if a particular feature should be coded as a module of your app’s plugin or theme or as a separate plugin. The main benefactor of your good planning at this step will be your developers (maybe 95 just you). Properly organizing your code is going to make it easier for you to maintain your app and develop it further. When building apps, we try to use the following guidelines: • One main plugin to store the core app code, and one theme to manage the

adding navigation menus to themes. This involved registering the menu in the theme’s code, designating where in the theme the menu is going to appear, and then managing the menu through the WordPress dashboard. The main benefit to using the built-in menu functionality in WordPress is that end users can control the content of their menus using the GUI in the dashboard. Even if you are a developer with full control over your app, it is still a good idea to use the built-in menus in WordPress since

want to update things if the window size changes. This can happen if someone resizes a browser window on their desktop, rotates a phone from portrait to landscape, or any number of things that could change the width or height of the window. jQuery offers an easy way to detect these changes so you can update your layout accordingly: //bind an event to run when the window is resized jQuery(window).resize(function() { width = jQuery(window).width(); height = jQuery(window).height(); //update your

with the $callback parameter. Your callback function will automatically receive the $post object and any other arguments you set here. In Example 5-3, we are going to build a custom meta box for all posts of our homework post type. This meta box will contain a checkbox for if a homework submission is re‐ quired and a date selector for the due date of the homework assignment. Example 5-3. Custom meta box

the CPT in one place. • You can put all of your code to register related taxonomies in one place. • You can build all of your CPT-related functionality as methods on the wrapper class. • Your code will read better. Keep Your CPTs and Taxonomies Together Put all of your code to register the CPT and taxonomies in one place. Instead of having one block of code to register a CPT and define the taxonomies and a separate class wrapper to handle working with the CPT, you can simply place your CPT and

Download sample

Download