have question about wp-query function in wordpress. My question is, is it possible to show just pages that starts with some char. For example I want show all pages that starts with char A and also that page is child of some parent page.
I know how to show child page with some full name:
$query = new WP_Query( 'pagename=contact_us/canada' );
Now I want something like:
$query = new WP_Query( 'pagename=contact_us/c%' );
So all pages that name begins with c ? I try this with with SQL logic and use % for any char. But it is not work for me.
I figure out this and if someone will have same issue here is the solution:
So with $wpdb (object of wordpress class wpdb) you can use classic SQL to get any data from any table in wordpress database.