Quantcast
Channel: Multiple meta_key with get_pages - WordPress Development Stack Exchange
Browsing latest articles
Browse All 2 View Live

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 Article


Multiple 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

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>