WordPress.org

Ready to get started?Download WordPress

Forums

Exclude pages from listing by name (4 posts)

  1. lobsterman
    Member
    Posted 7 years ago #

    is there a way to do this?
    the exclude parameter for the wp_list_pages functions only accepts id's

  2. moshu
    Member
    Posted 7 years ago #

    Only IDs. Since it is in the code, why does it make a difference?

  3. lobsterman
    Member
    Posted 7 years ago #

    I'm making a theme for a client, and she has to set up the site following my instructions, so I can't guess the page id's and I can't get her to touch the code.

  4. lobsterman
    Member
    Posted 7 years ago #

    OK, nvm I created custom functions based on the regular ones and put them in the theme's functions.php, busically I changed the sql query to query the name and not the id.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.