↧
Answer by Pat J for Multiple meta_key with get_pages
I'm not sure if you can do it with get_pages(), but you should be able to do something like this with get_posts():$args = array('post_type' => 'page','meta_query' => array('template_clause' =>...
View ArticleMultiple meta_key with get_pages
I currently have the following code where I filter by the page template;$pages = get_pages( array(‘post_type’ => ‘page’,‘meta_key’ => ‘_wp_page_template’,‘meta_value’ =>...
View Article