Skip to content

Bobcatou/simple-staff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Staff for Genesis

WordPress plugin that adds a custom post type for staff.

Description

This plugin registers a simple custom post type for staff. I wrote it for WordCamp Nashville 2014.

If your site is running a Genesis Framework child theme, this plugin includes a template for the archive page. If you're not running the Genesis Framework, you can create your own templates for these in your theme. If you don't like my templates, comment out lines 80 and 101 in simple-staff.php file. This will remove the style, script, and template loaded by the plugin.

Alternatively, if you are running a Genesis Framework child theme and want to make your own template, the plugin now handles this better. Add your template (archive-staff.php or single-staff.php) to your theme and the plugin will use that instead of its own template, so you don't need to comment out any lines at all.

Demo: http://milne.robincornettcreative.com/staff/

Requirements

  • WordPress 3.6, tested up to 3.9
  • Genesis Framework (templates will not work with other themes)
  • an HTML5 theme because I was too lazy to add XHTML support back in.

Installation

Upload

  1. Download the latest tagged archive (choose the "zip" option).
  2. Go to the Plugins -> Add New screen and click the Upload tab.
  3. Upload the zipped archive directly.
  4. Go to the Plugins screen and click Activate.

Manual

  1. Download the latest tagged archive (choose the "zip" option).
  2. Unzip the archive.
  3. Copy the folder to your /wp-content/plugins/ directory.
  4. Go to the Plugins screen and click Activate.

Check out the Codex for more information about installing plugins manually.

Git

Using git, browse to your /wp-content/plugins/ directory and clone this repository:

git clone git@github.com:robincornett/simple-staff-genesis.git

Then go to your Plugins screen and click Activate.

Frequently Asked Questions

Why did you make this?

I've used variations of this code in several iterations--doing it wrong (by hand), as part of a theme, and in plugins for clients. Since I'm using it as an example for WordCamp Nashville 2014, I'm writing it up as its own plugin.

Credits

Built by Robin Cornett and with help from David Gale

Changelog

1.0.0 initial release 1.1.0 reworked archive template so widget would be more gracefully placed; also set up better conditionals for plugin templates.

About

Creates a Simple Staff post type with a custom archive page (for Genesis).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 89.8%
  • JavaScript 6.0%
  • CSS 4.2%