Quantcast
Channel: WordPress API - count posts - WordPress Development Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Justin for WordPress API - count posts

With WP-CLI installed from https://wp-cli.org/ you can retrieve the total post count by using: wp post list --format=count Full documentation for the POST LIST command

View Article



Answer by Tim for WordPress API - count posts

Assuming you are using Linux or OS X, the easiest way is probably to use wp-cli (if present in your WordPress installation) to return a list of all posts: wp-cli post list Then pipe it to the word...

View Article

WordPress API - count posts

Is there a way to count the number of posts / pages via the WordPress API? I'm wanting to insert a post then check, using the API, that the count has gone up by 1. I've looked at...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images