How to exclude some content from posts to be used as "excerpt"
-
Hello,
In my wordpress blog, I’m always starting my post with a vidéo (I’m using a shortcode from a plugin to insert the vidéos), and a download box that I programmed (so there is text inside, such as the description, and a notice).
Then, after that, I start writing my content. It looks like that
[Youtube=link]
[download]Here is the amazing download box[/download}
Here is the begenning of the content of the post.The problem that I have is, that wordpress (logically) uses what comes first in the post, as excerpt. For the blog listing, for the RSS feed, for any content listing in the website or sidebar. Also, when it comes to share the post on social networks (I’m using yoast SEO to spot the datas), this is what is beeing shared too. For facebook, twitter, and for some social networks, they even would share the plain code shortcode as a content.
So the blog gets really weird, in the blog listing, every post start with “this is your download blablabla”.
My question is, is there any way to exclude this piece of content of the post, from beeing used in that way ? I just want the text content to be displayed, not the one surrounded by html or shortcodes.
I know there is some ways to specify which description or excerpt you want to use, but this would make me need to specify the excerpt for the blog, facebook, twitter, G+, linkedin…. (through yoast SEO) and every social network or fields I’d want it to be.
So it would be easier if in every post, I could just tell wordpress “forget about this piece of content”, by surrounding it by a code or something.
Is there a natural wordpress functionality that allows us to do that ? And if not; any smart plugin of your knowledge, that will make the trick ?
Thank you in advance for your advices!
Regards
- The topic ‘How to exclude some content from posts to be used as "excerpt"’ is closed to new replies.