You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wp post list --post_status="draft" returns published posts if they're sticky #278
It does seem that it is intentional if we consider the ignore_sticky_posts option, but at the same time I couldn't find any document stating sticky posts will be returned for all post statuses. I've raised it on Trac here, let's wait to hear back from the Core Team.
For now, you can use the following command: wp post list --post_status="draft" --ignore_sticky_post
Activity
Sidsector9 commentedon Feb 20, 2022
Hi @rob006 , thanks for reporting this.
It does seem that it is intentional if we consider the
ignore_sticky_postsoption, but at the same time I couldn't find any document stating sticky posts will be returned for all post statuses. I've raised it on Trac here, let's wait to hear back from the Core Team.For now, you can use the following command:
wp post list --post_status="draft" --ignore_sticky_post