[Résolu] Read more link on Exerpts not showing when there is no body text
This support ticket is created Il y a 4 années et 9 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
I have created a view that shows exerpts of posts.
But some posts only have an image or video and then the exerpt does not show the 'Read more' button.
Is there a way to always show the Read more button no matter how little text there is in the post?
The excerpt is produced by WordPress from the Post Body unless you provide an excerpt manually.
If you have no post content, you can add the Excerpt manually and then Toolset ShortCode will use that instead
In this case you should insert it manually then. This is because your [wpv-post-excerpt length="22" count="word"] will use the post body instead if there is no excerpt explicitly defined as Beda had mentioned.
When a more parameter isn't defined by the shortcode then it defaults to just "..."
Hi Shane, yes but then I have two 'read more' buttons (most of the time)... right?
I am sorry but Is my question so difficult to understand?
Is it possible to output an exerpt to;
- always show the read more button
- or never; that way I can add it manually without the button showing up twice when there is text in the post body
Or any other solution that achioefs the same result.