Search code examples
wordpresswordpress-gutenbergwordpress-shortcodewordpress-6

Wordpress shortcode not working in home.html


I have recently set up a wordpress page and the plugin Email Adress Encode.

I have set up the encoder with shortcodes at 3 locations using: [encode link="..."]...[/encode].

It worked fine for some time but only now I've realized that one instance of the shortcode is not working anymore (without chaning the block at all).

I can't make out the specific timing but it was working until about a week ago.

  • The plugin is installed.
  • The shortcode is working in the footer and the impressum but not in home.html

Wordpress version: 6.2.1.

Homepage: https://www.ff-schleissheim.at Impressum: https://www.ff-schleissheim.at/Impressum

The telephone numbers are exactly the same shortcode and are working in Impressum but not on Homepage.

My guess would be it has something to do with the filters but as I haven't changed anything I don't really know where to start. (It also might've been an Wordpress update that changed the behaviour but I honestly don't like the idea of forcing a downgrade to an older version of wordpress so I'm searching for other options before trying the downgrade).

As the Shortcodes are included in a <p> tag I tried using the actualy shortcode block. Outcome was the same. I also tried the default wordpress shortcodes (provided by wordpress) and they are working everywhere except the Homepage.

On Hompage it just plain prints out the shortcode text.

I also looked at the other forums and questions here but none of them worked and none of them are up-to-date as well.


Solution

  • This is normal, I invite you to this conversation: https://core.trac.wordpress.org/ticket/58333

    But the ShortCodes have been disabled in the 6.1 with block themes for a security vulnerability. From what I read it can still be working in template parts. And I manage to make them working in a page without the site editor.

    I've seen this in the Wordpress reddit this morning: https://www.reddit.com/r/Wordpress/comments/13lka7s/how_much_trouble_did_wordpress_621_update_cause/