bradpotter / genesis-page-templates

Adds additional unique page templates to the Genesis Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Genesis Page Templates

Genesis Page Templates is a plugin that adds additional unique page templates to the Genesis Framework.

Description

Genesis Page Templates takes advantage of a new filter introduced in WordPress 4.4.0. The first page template included in the plugin is a custom loop page template which allows a user to conveniently modify the loop on a per page basis by selecting the "Custom Loop" page template in the page editor and then entering Custom Loop settings into a meta box.

Custom Loop Settings

  • Post Type (Enter post, page or custom post type)

  • Taxonomy (Enter taxonomy, example: category, post_tag, etc.)

  • Taxonomy Term (Enter taxonomy term, example: featured, blog, etc. )

  • Post Per Page (Enter number of posts to display)

  • Order By (Enter author, title, name, type, date, rand, etc.)

  • Order (Enter ASC or DESC)

Requirements

  • Genesis Framework 2.0.0 or later
  • WordPress 4.4.0

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:bradpotter/genesis-page-templates.git

Then go to your Plugins screen and click Activate.

Usage

Activate the Genesis Page Templates plugin. Choose a page to edit. When in the "Edit Page" screen, select the "Custom Loop" template from Page Attributes drop down menu and click the Update button. A new meta box titled "Custom Loop Settings" will be added to the Edit Page screen below the content editor. Enter the appropriate parameters in the Custom Loop Settings meta box to modify the custom loop and click the Update button. View page to see the results of your custom loop.

Note: Since this is the initial release of the plugin I discourage using it on a production website until it has been thoroughly tested.

Future Development

Introduce additional page templates. Update post type, taxonomy and taxonomy terms to accept multiple parameters. Add additional settings options. Change some settings options to drop down menus.

Contributors

Rob Nue, Tonya Mork

Credits

Copyright © 2016 Brad Potter. All rights reserved.

About

Adds additional unique page templates to the Genesis Framework


Languages

Language:PHP 100.0%