Skip to main content

GP Elements Organizer

Overview

Two related plugins organize GeneratePress Elements (gp_elements post type): Opshell GP Elements Organizer (v0.3.0) and WPW GP Elements Organizer (v0.1.2). Both register a hierarchical gp_element_purpose taxonomy, creator metadata, and status tracking.

PluginVersionAuthorInline Edit
Opshell GP Elements Organizer0.3.0OpenCodeYes (AJAX)
WPW GP Elements Organizer0.1.2wpwhite.comNo

Purpose Taxonomy

Registered as gp_element_purpose, non-public, hierarchical. Automatically seeded with default terms on first activation:

PurposeDescription
heroHero section elements
ctaCall-to-action elements
headerHeader elements
footerFooter elements
archiveArchive page elements
single-postSingle post elements
landing-pageLanding page elements
hook-contentHook-based content elements
announcementAnnouncement banner elements
conversionConversion-focused elements

Meta Fields

Meta KeyTypeDescription
_opshell_gp_element_creatorstringCreator user ID or custom name
_opshell_gp_element_statusstringStatus: idea, inprogress, done
_opshell_gp_element_notestextInternal notes (Opshell version only)

Status Options

ValueLabel
ideaIdea
inprogressIn Progress
doneDone

Admin Features

1. Meta Box (Side)

Placed in the sidebar of the GP Elements editor with:

  • Purpose: Multi-select dropdown (hold Ctrl/Cmd)
  • Creator: User dropdown (Opshell) or text input (WPW)
  • Status: Single-select dropdown
  • Notes: Textarea (Opshell only)

2. List Table Columns

ColumnSortableDescription
Post IDYesElement post ID
PurposeNoComma-separated purpose terms
CreatorYesAssigned creator
StatusYesCurrent status badge
NotesNoTruncated notes (10 words, Opshell only)

3. Admin Filters

Dropdown filters for:

  • Purpose (hierarchical taxonomy dropdown)
  • Status (Idea / In Progress / Done)
  • Location (from GeneratePress conditions)
  • Creator text search

4. Filter Presets (Opshell only)

Save/load filter combinations as user presets stored in user meta (opshell_filter_presets).

5. Inline Editing (Opshell only)

Click any Purpose, Status, Creator, or Notes cell in the list table to edit inline via AJAX (opshell_inline_save). Includes Cancel/Save buttons and keyboard shortcuts (Enter to save, Escape to cancel).

6. Bulk Edit

Bulk edit support for Purpose, Status, and Creator via WordPress's built-in bulk edit interface. Triggered by opshell_bulk_save AJAX handler.

Admin Menu

Both plugins add a "Purposes" submenu under Appearance > Purposes that links to the taxonomy management screen for gp_element_purpose.

Code Organization

Opshell_GP_Elements_Organizer::init() // v0.3.0 — full featured
WPStrategist_GP_Elements_Organizer::init() // v0.1.2 — basic version

The Opshell version extends the WPW version with inline editing, AJAX save, notes field, and filter presets.