How to get page ID from Page Title Wordpress
global $wpdb;
$page_name = "Your page title";
$page_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '".$page_name."' AND post_type = 'page'");
return $page_id;
Magento, OpenCart, Joomla, wordpress, PHPBB, Core PHP, jQuery, Javascript professional elancer.
Home » Posts filed under How to get page ID from Page Name Wordpress