Skip Navigation

[Gelöst] custom shortcode do not render inside custom wisiwyg

This support ticket is created vor 8 Jahre, 3 Monate. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by Jean-Philippe vor 8 Jahre, 3 Monate.

Assisted by: Shane.

Author
Artikel
#360173

I have a custom shortcode :

function internal_link($atts){
	$a = shortcode_atts( array(
	        'link' => 'something',
	    ), $atts );
return get_permalink($a['link']);
}
add_shortcode( 'intlink', 'internal_link' );

Which work correctly inside regular wysiwig but on the one created with type they render as text instead of returning the correct url.

#360191

Shane
Supporter

Languages: Englisch (English )

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

Hi Jean,

Thank you for contacting our support forum.

I took a look at your shortcode and tested it on my end in a WYSIWYG field and it works fine on my end.

Would you like me to take a look at it on your website ?

I will enable the private fields for your next response so you can provide me with credentials to the website.

Thanks,
Shane

#360236

Fixed it using a jquery script.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.