Now i face a problem, that i want to add a hook into the the_post. Then i use print_r($post);
here display the my print_r
content and again display the default content. because i am here in the_loop.so again the content was display.
add_action( 'the_content', 'custom_post' );
function custom_post() {
global $post, $wp_query;
$post_id = $post->ID;
print_r($post);
}
Here i need how to overwrite the default content of the the_post and display my own content.
This is possible in a way, that i use the_title and the_content hook but here the function was call two times then its problem. so plz help me.