Making shortcodes work in WordPress 5.0+
-
Before WordPress 5.0, we could add a custom shortcode by inserting the shortcode text ( for example: [mycustomshortcode] ) directly into the page/post. However, when I try to do the same now and add the shortcode created by my custom plugin to a page, the page does not get published and shows an error ‘Publishing failed’. I tried to use the WordPress Classic block and insert the shortcode in it with the same results. Interestingly, the shortcode is rendered properly when the page/post is viewed. Are there any further steps to be followed to make the custom shortcodes compatible with WordPress 5.0+ versions? My current version of WordPress is 5.0.2.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Making shortcodes work in WordPress 5.0+’ is closed to new replies.