Post Count to include Pending
-
Quick question!
I’m trying to figure out a simple way to let the built-in category count to also include pending posts, but haven’t been able to find a good way to do so.
The reason I need this is that I use an external tool that uses the WP-JSON API to push posts into WordPress and includes the post count +1 in the title. However, if the last post is still pending, it uses the same number again. So if there are 5 published posts and 1 pending, the new post will still get “6” pushed into it, not “7” like it should.
Any thoughts?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Post Count to include Pending’ is closed to new replies.