Add post-count.sh script and reorganize README#116
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
post-count.shscript 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:
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:
README.mdto better group related utilities and improve discoverability as thescripts/directory expands.scripts/README.mdto document the newpost-count.shscript alongside existing utilities, keeping usage instructions centralized.Files Changed:
CHANGELOG.md(Modified)README.md(Modified)scripts/README.md(Modified)scripts/post-count.sh(Added)