WP Manifestindependent plugin directory
manifest / editor / fb-wp-plugin

FB Plugin

quick little wp plugin for fb

by Kyle Kelley · github.com/kowkelley/fb-wp-plugin

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/kowkelley/fb-wp-plugin/archive/refs/heads/main.zip

A WordPress plugin with two features:

  1. A Gutenberg block that inserts a stylized Read More link to a selected published post.
  2. A WP-CLI command at wp fb-read-more search.

Local development

From this plugin directory:

npm install
npm run build

For watch mode while editing block JS:

npm run start

WordPress verification

From workspace root:

docker compose exec -T wpcli wp plugin status fb-plugin
docker compose exec -T wpcli wp help fb-read-more search
docker compose exec -T wpcli wp fb-read-more search

Gutenberg block usage

  • Block inserter label: FB Read More
  • Block name: fb/read-more
  • Open InspectorControls to:
    • Search published posts by keyword.
    • Search by specific post ID.
    • Browse paginated results.
    • Select a post to update the previewed anchor.

Saved/rendered output format:

<p class="fb-read-more">Read More: <a href="{permalink}">{post title}</a></p>

CLI usage

wp fb-read-more search
wp fb-read-more search --date-after='2026-01-01' --date-before='2026-12-31 23:59:59'

Publish plugin only

Initialize git from this folder (not workspace root) so only plugin code is public.