Forum Replies Created

Viewing 1 replies (of 1 total)
  • AGREE

    Using the following code to post content by page_title

    <?php
    function wt_get_ID_by_page_name($page_title)
    {
    	global $wpdb;
    	$page_title_id = $wpdb->get_var("SELECT post_content FROM $wpdb->posts WHERE post_title = '%".$page_title."%' AND post_status='publish'");
    	return $page_title_id;
    }
    ?>

    Worked fine yesterday. But I upgraded to 3.1.2 today and now it’s without function.

Viewing 1 replies (of 1 total)