Skip to content

"post list" doens't show pages - usage or documentation is somewhat confusing or unconventional #298

@shula

Description

@shula

Bug Report

I don't know if it's a bug, documentation issue, or feature request:

To list pages, Intuitively I'd look for a command: "wp page list". Next best option would be "wp post list", since a page is a post.

When querying "post list" without explicit filtration, I'd expect it to return all post objects (select * from posts).

Instead, "wp post list" assumes post-type=post.

Since this default filter is not documented, I (and others) think something is wrong, and look for answers in stackoverflow :)

Possible solutions:

  • Change "post list" to list Posts & Pages by default (since they're both havr similar content concept.
  • Add "page list" command as an alias to "post list post_type=page"
  • Write clearly in the documentation that about the default assumed posttype=post

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions