Cannot Flush Permalinks with WP-CLI

I solved the problem by adding wp rewrite flush –hard command and setting mod rewirte in the global wp-cli configuration file: wp rewrite structure ‘/%postname%/’ wp rewrite flush –hard config.yml apache_modules: – mod_rewrite In this way, the .htaccess file gets regenerated. According to the official docs, this is needed in order to flush the permalinks. … Read more

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