Wordpress plugin not working!
Posted: Fri Oct 02, 2020 11:27 am
Her you can read a developer that supported us, https://github.com/Kntnt/kntnt-ggpkg-shortcode-fix
Pleas team Garden Gnome correct this asap. I like your product very much but this is a big problem!!!
Peter
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Kntnt Fix for Garden Gnome Package
WordPress mu-plugin that removes empty lines from the JavaScript outputted by the shortcode of Garden Gnome Package viewer to prevent wpautop to mess with it.
Background
The WordPress plugin for publishing Garden Gnome Packages provides the shortcode ggpkg to present Pano2VR and Object2VR packages on pages and posts.
The plugin's shortcode outputs JavaScript code which might contain empty lines. These lines will be converted into <p></p> by WordPress' infamous wpautop() function. That results in a syntax error in the JavaScript.
Awaiting a bug fix from Garden Gnome Software, you can use this plugin as a fix. It merely removes the empty lines before outputting te JavaScript.
How to install
I suggest you install this plugin as a "must use plugin":
In your wp-content directory, create a mu-plugins directory (if it not already exists).
Download kntnt-ggpkg-shortcode-fix.php and save it within the mu-plugins directory.
That's it!
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
the problem is also reported here.
https://wordpress.org/support/topic/bug ... -by-ggpkg/
Pleas team Garden Gnome correct this asap. I like your product very much but this is a big problem!!!
Peter
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Kntnt Fix for Garden Gnome Package
WordPress mu-plugin that removes empty lines from the JavaScript outputted by the shortcode of Garden Gnome Package viewer to prevent wpautop to mess with it.
Background
The WordPress plugin for publishing Garden Gnome Packages provides the shortcode ggpkg to present Pano2VR and Object2VR packages on pages and posts.
The plugin's shortcode outputs JavaScript code which might contain empty lines. These lines will be converted into <p></p> by WordPress' infamous wpautop() function. That results in a syntax error in the JavaScript.
Awaiting a bug fix from Garden Gnome Software, you can use this plugin as a fix. It merely removes the empty lines before outputting te JavaScript.
How to install
I suggest you install this plugin as a "must use plugin":
In your wp-content directory, create a mu-plugins directory (if it not already exists).
Download kntnt-ggpkg-shortcode-fix.php and save it within the mu-plugins directory.
That's it!
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
the problem is also reported here.
https://wordpress.org/support/topic/bug ... -by-ggpkg/