bhargavdt3
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: facing problems with getpost methodEven i have another doubt here, how to change background for perticular pages, and how to construct different headers for different pages.
Forum: Fixing WordPress
In reply to: facing problems with getpost methodok
Forum: Fixing WordPress
In reply to: facing problems with getpost methodthank you, i will implement this and let you know, can i know your email id, so that i can contact you when ever i get doubts
Forum: Fixing WordPress
In reply to: facing problems with getpost methodin which case we use loops
Forum: Fixing WordPress
In reply to: missing the layout when using the getpost method in page.phpwhen i used getpost in page.php i getting o/p as this.
Full code of Page.phpif (!is_page( ‘home’ ))
{get_header( ‘bhargav’ );
$post_7 = get_post(3736);$con = sanitize_post_field( ‘post_content’, $post_7->post_content, $post->ID, ‘display’ );
echo $con;
get_footer();
}
else{
templating_singular(‘Page’);
}Forum: Fixing WordPress
In reply to: missing the layout when using the getpost method in page.phpi am using visual editor to design a page, i have designed one page,but for that page i need different header…so what i did is i changed in page.php and used getheader() and getfooter methods….but for content in the middle what i designed in visual editor, i am not able to display it, i used getpost method in between getheader and getfooter, i am able retrive the content but with no layout,it’s displaying like this.
[vc_row][vc_column width=”1/1″][vc_column_text] I am text block. Click edit button to change this text. sflskfjsdf sflskjflkjsdf sfsdkflksjdfsd fsdfmlksdjflkjsdfdsfdsfsdfdsf [/vc_column_text][/vc_column][/vc_row]
what should i do , please help me