Relatively new to WP, and I’m sorting out the og tags for sharing content via various websites, what’s been troubling me recently is the
og:description tag, what I would like it to display is the most recent post title, and then the content. However it concatenates the two together so on a facebook share, instead of appearing as
‘Blog Title. Start of Blog Post’
it appears as ‘Blog TitleStart of Blog Post’
I’ve managed to identify the tag to grab just the blog title, in
<?php the_title(); ?>"however when I’ve been looking for a tag that solely picks up the content of the blog post without the title, I’ve had no luck, I’ve tried
Any help would be appreciated
- The topic ‘Main body only PHP tag’ is closed to new replies.