We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Blog Article Excerpt Reused
I am trying to reuse the blog article excerpt as the meta description.
Should I create a separate layout for the head content just for the blog post or create a different seo.html changing the content id for the blog excerpt?
I tried this in a blog head content:
<meta name="description" content="<?php perch_blog_post_field(perch_get('s'), 'excerpt', striptags=true); ?>" />
But while it output the text okay it had <p> tags around it, however I think its coded wrong as my editor is showing an error.
Can you advise?
Want to reply to this thread?Login with Perch