WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Query_posts exclude page

[Resolved] Query_posts exclude page

  • treelovinhippie
    Member

    @treelovinhippie

    Hi

    I’m running this code to list out pages (need to for a particular implementation):

    query_posts('post_type=page')

    However I’d like to exclude the pages named “logo” and “about” from the query loop.

    How do I add that into the query?

    … also, how would I get the query to display two particular pages, e.g:

    query_posts('post_type=page&pagename=logo,about')

    cheers

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Query_posts exclude page’ is closed to new replies.