How to ignore line breaks for bbpress meta description?
Currently the meta description for bbpress is limited to the text up to the first line break. This means that for a forum post like this (https://300hours.com/f/careers/t/representation-of-cfa-on-a-level-1-failed-candidates/), the meta description is just [Hi guys,], which isn’t great and generates a lot of duplicate meta descriptions.
I’m trying to correct this by using a PHP snippet to counter this, basing it from a snippet I found (https://bbpress.org/forums/topic/how-to-include-a-meta-description-and-keywords-in-bbpress-without-a-plug-in/#post-80944), but I’m not having a lot of luck so far. Is there a filter that can tell the meta description to not stop at line breaks and apply this to only forum posts (i.e. not affect ‘regular’ WP posts)?
Thanks in advance for any help given!!!
- You must be logged in to reply to this topic.