How to Display pages with a Custom Fields in one page
You can get pages with get_pages(), in the arguments you can provide a search query for post_meta, like for example: $args = array( ‘post_type’ => ‘page’, ‘meta_key’ => ‘section’, ‘meta_query’ => array( array( ‘key’ => ‘section’ ‘value’ => ‘surgery’ // here you could place get_the_title() ‘compare’ => ‘=’ ) ) ); $pages = get_pages( $args … Read more