Listing posts with wp-cli

the first request doesn’t show any custom post type (polylang_mo is a custom post type)

polylang_mo is a private custom post type so unless I explicitly request this post type, it won’t be included.

the second request shows only 1 page (instead of 3)

Polylang was actually filtering the results. Adding --skip-plugins=polylang makes the 3 posts appear.

Leave a Comment