Coder Social home page Coder Social logo

tabrisrp / hierarchy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jchristopher/hierarchy

0.0 1.0 0.0 812 KB

[WordPress Plugin] Move your Pages/Posts/Custom Post Type admin links from the sidebar to a Content menu that nests everything where it should be

Home Page: https://wordpress.org/plugins/hierarchy/

Shell 4.36% PHP 95.64%

hierarchy's Introduction

This is a WordPress plugin. Official download available on wordpress.org.

Hierarchy

Move your Pages/Posts/Custom Post Type admin links from the sidebar to a Content menu that nests everything where it should be

Description

Custom Post Types (sometimes) need context, Hierarchy allows you to rework your content management workflow by essentially moving Custom Post Type admin menus into your Pages list. What this does is mimic the navigation you've set up on your site by placing Custom Post Type edit links amongst your Pages where they belong.

Custom Post Types need context

Custom Post Types are great, but the editing workflow can be improved. Adding a Custom Post Type likely results in another WordPress admin sidebar menu, abstracting the management of that content from the main organization of your site, Pages. Hierarchy intelligently extends your Pages menu by including your Custom Post Type admin links within the Page structure, allowing for a much more natural workflow when managing your content.

Examples

Chances are you've customized your Front page displays setting to display a static page instead of your latest blog posts. Now you've got a sidebar link to manage your Posts and a WordPress Page called "Blog" that sites in your list of Pages doing absolutely nothing. Hierarchy remedies both problems by converting the "Blog" page link to be one that lists your Posts. It also hides the Posts sidebar entry (if you want it to).

It's also likely that you're utilizing Custom Post Types to power sections of your website, but it's awkward to manage the content of an internal section of your website using the main WordPress admin sidebar links to your Custom Post Type. Hierarchy will allow you to hide those sidebar links and instead nest them amongst your Pages, providing contextual links to manage the content of your Custom Post Types.

Screenshots

A typical WordPress site with multiple CPTs:

A typical WordPress site with multiple CPTs

Pages are set up to establish structure for the site, but editing CPTs is disjointed:

The Page structure

Hierarchy integrates CPT edit links within your Pages and hides them from the Admin Menu:

Hierarchy integrates CPT edit links within your Pages and hides them from the Admin Menu

Hierarchy settings:

Hierarchy settings

Contextual links are included with each row in Hierarchy:

Contextual links are included with each row in Hierarchy

More information

If you'd like a lot more information on the implementation and workflow changes please see the detailed introduction and the follow-up for 1.0.

Installation

  1. Download the plugin and extract the files
  2. Upload hierarchy to your ~/wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

Changelog

1.0.3

  • Replaced 'Add New Page' button with a 'Shortcuts' button allowing for rapid access to post types and taxonomies
  • Capability checks before outputting links (clicking links without capabilities results in a permission denied screen)
  • New filter hierarchy_settings_capability to control who can see the Hierarchy settings
  • Improved l18n

1.0.2

  • Fixed an issue where pagination wasn't displaying properly
  • Fixed an issue where standalone (e.g. not 'child') CPT entries were not properly output

1.0.1

  • Fixed a false positive that would incorrectly output post type entries

1.0

  • Complete refactor: reorganization, optimization, PHP Warning cleanup
  • Bumped minimum WordPress version support to 3.8
  • Use Dashicons where applicable
  • Allow 'Prevent New' for post types (prevent adding new entries)
  • New filters to customize Menu entry, Menu position, page title, and more

0.5

  • Improved README, added banner image to help explain Hierarchy
  • Tested with WordPress 3.7

0.4

  • You can now implement pagination on the main 'Content' page
  • Aded entry count when considering CPTs to better call attention to posts within
  • Cleaned up a PHP Warning

0.3

  • Added a fix for CPTs not being nested properly in WordPress 3.4+

0.2

  • Added a contextual CPT management link to the admin sidebar that displays only when editing an entry of that CPT
  • Added option to include CPT entries within the Hierarchy. Added option to omit a CPT from the Hierarchy entirely.
  • CPT with a rewrite slug that matches an existing Page will respect that relationship and be inserted as a child of that Page
  • Posts Page is now placed properly when a custom permalink front has been put in place

0.1

  • Initial release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.