WP Manifestindependent plugin directory
manifest / editor / ploetner-dev-blocks

Plötner Dev Blocks

Dynamic content blocks (Hero, Expertise, Open Source, Speaking, Community, CTA Banner) and their backing custom post types for the Ploetner Dev site.

★ 0stars
1.0.4latest · 1mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/lloc/ploetner-dev-blocks/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress 7.0 PHP-only (autoRegister) blocks and their backing custom post types for the Plötner Dev site. Extracted from the ploetner-dev-child theme so the content survives theme switches.

Requirements

  • WordPress 7.0+ (uses supports.autoRegister for PHP-only block registration)
  • PHP 8.1+

What it provides

Blocks (category “Ploetner.dev”)

Block Content source
ploetner-dev/hero Block attributes (single instance)
ploetner-dev/cta-banner Block attributes (single instance)
ploetner-dev/expertise pd_expertise posts
ploetner-dev/open-source pd_project posts
ploetner-dev/speaking pd_talk posts
ploetner-dev/community pd_community posts

All blocks render server-side via do_blocks() of canonical block markup, and the WP 7.0 editor auto-generates Inspector Controls from each block's declared attributes. No build step / JavaScript.

Custom post types

pd_expertise, pd_project, pd_talk, pd_community — all non-public (no archive, not publicly queryable, show_ui for editing). Per-type meta (card label, tech tags, link, year, event) is edited via a classic “Details” meta box.

Styling dependency

The blocks output the site's design-system CSS classes (ploetner-card, ploetner-section-label, ploetner-expertise-grid, ploetner-speaking-row, ploetner-card-desc) and rely on theme.json presets (colors accent / base-card / border / text-muted, spacing presets, the mono font family). Those live in the ploetner-dev-child theme. The plugin supplies structure and data; the theme supplies presentation. To use these blocks in another theme, provide equivalent presets and class styles.

Seeding sample content

The sample content is seeded automatically on plugin activation — there is nothing to run by hand for a fresh install. Seeding is idempotent (items whose slug already exists are skipped) and version-aware: a pd_blocks_seed_version option records what has been written, and a future plugin version that adds new sample items seeds them on the next admin load. The data lives in one place, src/Seeder.php.

The WP-CLI seeders remain available for re-seeding or CI. Each is a thin wrapper over Seeder and runs only its own post type:

wp eval-file wp-content/plugins/ploetner-dev-blocks/tools/seed-expertise.php
wp eval-file wp-content/plugins/ploetner-dev-blocks/tools/seed-open-source.php
wp eval-file wp-content/plugins/ploetner-dev-blocks/tools/seed-speaking.php
wp eval-file wp-content/plugins/ploetner-dev-blocks/tools/seed-community.php

Releases

1 release.

Tag
Published
1.0.4 latest
Sep 23, 2026 1mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.