Article won't be displayed when using shortcode
-
Hi guys,
I got a problem with this plugin. If I check the “Automatically Inject TimeSpan Code” in the backend everything works great.
If the box isn’t checked the whole articles won’t appear. This happens by just activating the plugin. No change if I place the shortcode (<?php echo do_shortcode(‘[time-span]’) ?>) in my template.
If the shortcode is placed in a a template it shows up in the frontend but the article won’t be displayed. Therefore I get those information:
Notice: Undefined variable: post in /wp-content/plugins/timespan/timespan.php on line 42 Notice: Trying to get property of non-object in /wp-content/plugins/timespan/timespan.php on line 42
As said, it only works if the “Automatically Inject”-box is checked. Has anybody any ideas?
- The topic ‘Article won't be displayed when using shortcode’ is closed to new replies.