Skip Navigation

[Resolved] custom shortcode do not render inside custom wisiwyg

This support ticket is created 8 years, 3 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 2 replies, has 2 voices.

Last updated by Jean-Philippe 8 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#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: English (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.