Title: Error with adding shortcode as php
Last modified: August 30, 2016

---

# Error with adding shortcode as php

 *  Resolved [chuckg007](https://wordpress.org/support/users/chuckg007/)
 * (@chuckg007)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-with-adding-shortcode-as-php/)
 * Hi there,
 * For some unknown reason, the theme I am using (SKT White) does not allow shortcodes
   to be added to the homepage!
 * So, I’m trying to add the shortcode for your Countdown plugin as php. I have 
   it as follows:
 * <?php echo do_shortcode(“[tminus t=”03-09-2016 00:00:00″/]”) ?>
 * However, this generates a syntax error and my website disappears! Could you kindly
   advise how the code can be amended to remove the syntax error?
 * Thanks in advance!
 * [https://wordpress.org/plugins/jquery-t-countdown-widget/](https://wordpress.org/plugins/jquery-t-countdown-widget/)

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

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-with-adding-shortcode-as-php/#post-6381509)
 * does the same thing happen with version [2.3.2](https://downloads.wordpress.org/plugin/jquery-t-countdown-widget.2.3.2.zip)?
 * > a syntax error
 * could you be more specific?
 *  Thread Starter [chuckg007](https://wordpress.org/support/users/chuckg007/)
 * (@chuckg007)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-with-adding-shortcode-as-php/#post-6381533)
 * Simply, when I add the line of php to index.php Dreamweaver states that there
   is a syntax error. When the file is uploaded the website is blank.
 * Website is: [http://charlesandporsche.wedding](http://charlesandporsche.wedding)
 *  Thread Starter [chuckg007](https://wordpress.org/support/users/chuckg007/)
 * (@chuckg007)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-with-adding-shortcode-as-php/#post-6381537)
 * I fiddled with a few things and this worked(!):
 * <?php echo do_shortcode(‘[tminus t=”03-09-2016 00:00:00″]’); ?>
 * However, how do I get the countdown timer on on a single line/row?
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-with-adding-shortcode-as-php/#post-6381622)
 * Ah yes, you need to use different quotes to wrap the values then you used to 
   wrap the shortcode. This issue is resolved. As for your single line/row you can
   a) use a different style or b) search the support threads. This issue has been
   addressed many times.

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

The topic ‘Error with adding shortcode as php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-t-countdown-widget_7b7b7b.
   svg)
 * [jQuery T(-) Countdown Widget](https://wordpress.org/plugins/jquery-t-countdown-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-t-countdown-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-t-countdown-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-t-countdown-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-t-countdown-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-t-countdown-widget/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 4 replies
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/error-with-adding-shortcode-as-php/#post-6381622)
 * Status: resolved