/Post-Author-Credit

A simple plugin used to demonstrate how to use Ajax in WordPress development. Includes fully documented and localized code following WordPress coding conventions.

Primary LanguagePHP

Post Author Credit

A simple plugin used to demonstrate how to use Ajax in WordPress development. Includes fully documented and localized code following WordPress coding conventions.

  • Version 0.5 provides the basic foundation on the plugin using the typical model of saving options upon a POST
  • Version 1.0 implements Ajax functionality using the WordPress Ajax API

View the full article.

Installation

  1. Download a copy of the plugin
  2. Install in your wp-content/plugins directory
  3. Navigate to your 'Plugins' dashboard
  4. Activate the plugin
  5. Navigate to any post page (new or existing) and the new feature will appear above the 'Publish' options
  6. Activating the option will render a new content box above post content

Screenshots

Post Editor

Post Editor with custom meta boxes

Public View

Public-facing view of the theme

Changelog

0.5

  • Provides standard functionality without Ajax. Used to lay the foundation for implementing Ajax.

1.0

  • Implements Ajax functionality to asynchronously save the custom post meta.
  • This functionality is used to demonstrate how to use the WordPress Ajax API.

WordPress API References

Notable functions used throughout this plugin are: