Skip to content

Add post-count.sh script and reorganize README#116

Merged
jasperf merged 3 commits into
mainfrom
add/post-count-script
Jul 8, 2026
Merged

Add post-count.sh script and reorganize README#116
jasperf merged 3 commits into
mainfrom
add/post-count-script

Conversation

@jasperf

@jasperf jasperf commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Adds a post-count.sh script for counting published posts by year/month, alongside a README reorganization and the corresponding CHANGELOG entry for version 2.18.0. The new script provides site administrators with a quick way to audit content publishing volume over time without writing custom WP-CLI queries. Documentation updates restructure the README's scripts and troubleshooting sections to improve navigability as the script collection grows. Together these changes add 263 lines across four files, with the script itself being the primary functional addition.

New Script:

  • Added scripts/post-count.sh, a standalone utility that counts published posts grouped by year and month, giving a quick content-volume audit for WordPress sites managed through this repository.

Documentation and Organization:

  • Reorganized the scripts and troubleshooting sections in README.md to better group related utilities and improve discoverability as the scripts/ directory expands.
  • Updated scripts/README.md to document the new post-count.sh script alongside existing utilities, keeping usage instructions centralized.
  • Added a CHANGELOG entry for version 2.18.0 documenting the new script and README reorganization.

Files Changed:

jasperf added 3 commits July 8, 2026 08:59
Answers "how many posts have we published this year?" via wp db query,
scoped to real blog posts (post_type=post, post_status=publish) by
default so pages, CPTs, and drafts don't skew the count. Supports
all-years, single-year, and monthly breakdowns, and can run locally or
against production over SSH.
Splits the flat Scripts table into four categorized tables (Releases &
GitHub, Monitoring & Security, Content & Backups, Images/WooCommerce &
Files) covering scripts that existed but weren't listed, and promotes
Troubleshooting from a Trellis table row to its own top-level section.
@jasperf jasperf merged commit 0cc351c into main Jul 8, 2026
@jasperf jasperf deleted the add/post-count-script branch July 8, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant