Post Count for Multisite?

Conceptually, I’m looking for a combination of wp post list –format=count and wp site list –format=count but I don’t think that’s feasible. Nope, such a command does not exist, but adding it would be wasteful and counterproductive. Just because there isn’t a dedicated single tool that builds a house all at once doesn’t mean tools … Read more

Batch Replace URLs in WordPress Database

No because you’re running the command on the posts table, and only on the content column, but ACF fields aka post meta are stored in the post meta table, not the content column of the posts table so no search replacing is occurring. You can tell WP CLI to perform the search replace with PHP … Read more

Disappearing plugins

Figured it out… I had Admin Menu Editor Pro installed, and I forgot it has the ability to hide plugins, which I had apparently done at some point and forgot about. D’Oh!

wp cli media commands not working

Media is the post type (post_type=”attachment”), so most operations are done with wp post command. By default, wp post manage blog posts (post_type=”post”), therefore by fetching post IDs you must add –post_type=attachment indicating the type of posts. And to update media meta you should use wp post meta update <id> <key> <value> Your entire command … Read more