blank page showing on using method get_post
-
I created a custom page and below is the code which i used
<? get_header(); $post_id_7 = get_post(15); $title = $post_id_7->post_title; echo "Title : ".$title; ?> <? get_footer(); ?>I want to print tile of post whose id is 15,but instead its showing a blank page.Whats wrong im doing here ?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘blank page showing on using method get_post’ is closed to new replies.