Skip Navigation

[Resolved] Link in exerpt not working – show an excerpt of a WYSIWYG custom field

This support ticket is created 2 years, 1 month ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 12 replies, has 2 voices.

Last updated by larsP-2 2 years ago.

Assisted by: Luo Yang.

Author
Posts
#2509637

Tell us what you are trying to do?
I want, that the Links in the exerpt are working. Is it possible?

Is there any documentation that you are following?
https://toolset.com/forums/topic/i-would-like-to-show-a-excerpt-of-a-custom-user-field-that-i-have-created/

Is there a similar example that we can see?
"> Nachruf ansehen" should be klickable

What is the link to your site?
hidden link

#2510143

Hello,

Please elaborate the question with more details:

How do you setup link in post excerpt?
How do you display the post excerpt?

Please provide detail steps to reproduce the same problem, thanks

#2514509
Image 2.jpg
Image 1.jpg

I did it exacly the steps in the link:
https://toolset.com/forums/topic/i-would-like-to-show-a-excerpt-of-a-custom-user-field-that-i-have-created/

What do you wanna know more?

But in the exerpt of WYSIWYG Links are not working. And I want Links to work in the exerpt.

#2514759
Support.jpg

The marked part in the picture is a Link. But in the Exerpt it's not klickable

#2516029

I have tried it in a fresh WP installation + the latest version of Toolset plugins, it works fine, see below test site.
Login URL:
hidden link

Custom codes:
hidden link

Test post:
hidden link

Test it in frontend:
hidden link
I can see the "Read more ..." link, and it works fine.

Can you reproduce the same problem in above test site?

#2516151
Image 004.png

The Links in your exerpt are not klickable as well. I do want those Links klickable. Is it possible?

Thanks for your help. Unfortunatelly we are in hurry. I'd be very thankful for a fast respond

#2516161

My problem is not the read more Link. My Problem is, that if the Text is so small, that there is no read more Link needed but in the WYSIWYG itself is a link that should be klickable

#2516561

https://toolset.com/forums/topic/display-hyperlink-in-post-excerpt/

I teird this. But the code doesn't worked.

#2516631

Unfortunately, there isn't such kind of built-in feature within Toolset plugins, the custom shortcode [trimfield] is using WordPress built-in function wp_trim_words() to trim text, this function will remove all HTML tags in the text, including HTML "a" link tags, so it won't be able to display the link in it.
https://developer.wordpress.org/reference/functions/wp_trim_words/

And it is good idea to display those links, if you keep those HTML "a" tags, it might cut the texts and break the HTML tags.

#2516861

Can you provide a different coder where the html tags wil not be removed?

#2517093

Or do you know a different good way to implement an exerpt of the post content?

#2518553

Unfortunately, there isn't other better workaround for your case.
You might consider to create another custom WYSIWYG custom field, setup/display the short texts + HTML link manually.

#2518689

Thank you