Title: Article won&#039;t be displayed when using shortcode
Last modified: August 22, 2016

---

# Article won't be displayed when using shortcode

 *  Resolved [Dominik Horn](https://wordpress.org/support/users/dominikhorn/)
 * (@dominikhorn)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/article-wont-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?
 * [https://wordpress.org/plugins/timespan/](https://wordpress.org/plugins/timespan/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [paperleaf](https://wordpress.org/support/users/paperleaf/)
 * (@paperleaf)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/article-wont-be-displayed-when-using-shortcode/#post-5395225)
 * Hey Dominik,
 * Just saw this request – we’re working on it as we speak and will update here.
   Thanks!
 *  Plugin Author [paperleaf](https://wordpress.org/support/users/paperleaf/)
 * (@paperleaf)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/article-wont-be-displayed-when-using-shortcode/#post-5395233)
 * Hey Dominik,
 * We just pushed a fix (version 1.0.6); this fixes the issue. Please update to 
   that version and let us know if any other problems occur. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Article won't be displayed when using shortcode’ is closed to new replies.

 * ![](https://ps.w.org/timespan/assets/icon.svg?rev=999432)
 * [TimeSpan](https://wordpress.org/plugins/timespan/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/timespan/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/timespan/)
 * [Active Topics](https://wordpress.org/support/plugin/timespan/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timespan/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timespan/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [paperleaf](https://wordpress.org/support/users/paperleaf/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/article-wont-be-displayed-when-using-shortcode/#post-5395233)
 * Status: resolved