Use the page slug in a WP_Query?

I’m doing some custom loops that I initialize with a query like this

$the_query = new WP_Query('page_id=266');

It works fine. It’s just I’ld to call my page with its slug and not its ID.

Read More

Would it be possible ?

Related posts

Leave a Reply

1 comment