Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$meta_query_args = array(
'post_type' => 'page',
'order' => 'ASC',
'meta_key' => 'city_name',
'orderby' => 'meta_value'
);
$meta_query = new WP_Query( $meta_query_args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment