Skip Navigation

[Resolved] WYSIWYG Linked Text Not Displaying Properly

This support ticket is created 4 years, 9 months 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by calgaryA 4 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1575027
anchor-link.jpg

Hi there,

Not sure what I'm doing wrong but I am using the WYSIWYG custom field on one of my posts. The text in the WYSIWYG editor is a link, however the <a> tags seem to be rendering out with a &nbsp after the 'a'. See attached image.

I've used the following in my template file:

$short_desc = types_render_field('short-description', array('output'=> 'html', 'suppress_filters' => 'true'));

echo $short_desc;

#1575903

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Galgary,

Thank you for getting in touch.

Could you try using the 'output'=>'raw' instead of 'output'=> 'html' and let me know if this helps.

Thanks,
Shane

#1576283

It does for this case. However, on another page where I would like the other formatting to display (such as <p> or any header tags)... it strips those and just shows the raw text without those tags.

#1577201

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Calgary,

That is quite odd as it shouldn't be doing this. Would you mind allowing me to have admin access to the site to checks on the page ?

I will need for you to send me the exact link to the page in your screenshot.

I will also be examining the plugins that you have installed as they could also be what is causing the issue but I will need to have a detailed at the site.

If needed I would like the permission to install the duplicator plugin on your site to create a copy where I can test locally to see if the issue remains.

Looking forward to hearing from you soon.

Thanks,
Shane

#1577879

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Calgary,

I would like to take a look at the other pages with issue.

Specifically the page in your response here
https://toolset.com/forums/topic/wysiwyg-linked-text-not-displaying-properly/#post-1576283

Please let me know the page link and the template file.

Thanks,
Shane

#1578025

So I just took a look at the site again and it seems to be working. Maybe there is an issue with my local site?. .. Anyway, thanks for your help!