Grabing the content?
-
What is the php code to grab the content of the post? I want to put it for a meta tag:
<meta property="og:title" content="" />
it will go where it says content=”” but I am not sure what to put there. I have tried <?php the_content() ?> and even <?php echo $post_data->post_content) ?> but nothing seems to be working.
So bascially what is the php code to grab the content from a post? This will go in the header….Or perhaps thats the problem? That it should go in the header.php?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Grabing the content?’ is closed to new replies.