I wonder if someone would know how to query specific pages (not by id), lets say I create a custom field called "product", and I would like to query all pages with that custom field.
Kind Regards :)!
So far I've found this solution
thank u so much! so far I've found this solution
global $wp_query; $args = array_merge( $wp_query->query, array( 'post_type' => 'page' , 'meta_key' => 'product' ) ); query_posts( $args ); ?>
and works really cool!