How to stop posts from overriding meta description, image, etc
-
My homepage, author pages, and category pages are all populating meta tags with information from the posts within them, rather than information about those pages themselves.
I’ve tried using is_home() for the homepage issue, but I have been running into problems making that work as expected. Either I can get the homepage meta to display and none of the other pages, or it ignores my is_home() entirely and displays the meta for the most recent post.
My Author pages (site.com/author/name) each have a small bio and picture of the author at the top, and I thought that would populate the meta description and image fields. It does not; it pulls image, title, and body content from the first post by that author.
My Category pages are similar; in spite of including the category title and description on each page, it simply includes the post meta content of the most recent post.
Is there a way to force those page types to ignore meta data from contained posts? Or, in other words, is it possible for post meta data to ONLY show on the post link, rather than on pages it’s aggregated on?
- The topic ‘How to stop posts from overriding meta description, image, etc’ is closed to new replies.