Use the page slug in a WP_Query?

use pagename= to query by slug. See WP_Query for full list of valid arguments.

Leave a Comment