NUKnightLab / TimelineJS-Wordpress-Plugin

A simple shortcode plugin to add the Timeline to Wordpress
Other
207 stars 50 forks source link

Plugin does not work on Wordpress 6.0.2 #44

Open JoeGermuska opened 1 year ago

JoeGermuska commented 1 year ago

As reported on the WordPress support forum, the plugin does not seem to function on WordPress 6.0.2.

At this time there is no hypothesis about why. I found some discussion about problems with shortcodes in WP6, but nothing conclusive.

We are not active WordPress or PHP developers and welcome any support from the community in finding a fix.

JoeGermuska commented 1 year ago

In WordPress 6 you can use a "Custom HTML" block and drop in the iframe embed code from the Timeline site, and things work quite nicely.

Of course, we understand that existing WordPress installs would prefer that their pages not "break", and we'll see if we can fix it... but

Also, the oembed feature enabled by the plugin still works, so you can include the URL to a timeline (such as https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1xuY4upIooEeszZ_lCmeNx24eSFWe0rHe9ZdqH2xqVNk&font=Default&lang=en&initial_zoom=2&height=100% ) on a line by itself and it should work, although there's less control over the dimensions of the embedded timeline.