• Resolved chuckg007

    (@chuckg007)


    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://ww.wp.xz.cn/plugins/jquery-t-countdown-widget/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Baden

    (@baden03)

    does the same thing happen with version 2.3.2?

    a syntax error

    could you be more specific?

    Thread Starter chuckg007

    (@chuckg007)

    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

    Thread Starter chuckg007

    (@chuckg007)

    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

    (@baden03)

    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.