WordPress CLI and PublishPress Authors

The best way to manage large WordPress sites (over 1,000 authors or 100,000 posts) is with the WordPress Command Line Interface (CLI).

If you install PublishPress Authors on a large site with many existing authors, we recommend you run this command below. This command will update your posts and attach the correct author data into PublishPress Authors.

$ wp publishpress-authors create-terms-for-posts

You can also limit this command to a certain number of posts at a time (default to 300):

$ wp publishpress-authors create-terms-for-posts --posts_per_page=500

Or you can also limit it to a specific post type (default to “post”):

$ wp publishpress-authors create-terms-for-posts --post_type=my_post_type

Professional publishing plugins for WordPress! Get PublishPress

  • SUBSCRIBE TO OUR NEWSLETTER
  • SEARCH THIS SITE