Find WP Page ID

$page_id = $wpdb->get_var(“SELECT ID FROM $wpdb->posts WHERE post_name = ‘page_slug’”);

 

Leave a Reply