Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey there!

    We have an option that will let you rename our shortcodes, for situations like these.

    If you go to our Basic Options tab, scroll down and look for Shortcode Options – these fields will let you change the words for our registered shortcodes, in the instance that your theme or plugins have shortcodes with the same name.

    Let me know if that helps?

    Best,
    Richard

    Thread Starter ClickMonster

    (@whatcomweb)

    Yes it did, I didn’t quite understand you could rename it, thanks!

    I think I have a similar question…

    I’m trying to use the WP do shortcake option, i.e.:

    <?php echo do_shortcode("[testimonials_cycle random="true" count='10' width='100%' theme='default_style' transition='fade' timer='4000' auto_height='container’]" ); ?>

    but this throws up a parse error (url edited for security):

    Parse error: syntax error, unexpected T_STRING in /domain/html/wp-content/themes/theme-name/content-home-page.php on line 13

    How does one incorporate this into a template file?

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Blitz999!

    You have a syntax error in your PHP, because you are using doublequotes inside your string as well as around it.

    Try the following, instead:

    <?php echo do_shortcode("[testimonials_cycle random='true' count='10' width='100%' theme='default_style' transition='fade' timer='4000' auto_height='container']" ); ?>

    What I changed was the set of double quotes around “true” to single quotes, so that your parse error should go away (what you had was a simple PHP error is all.)

    Best,
    Richard

    Oh…

    Well spotted! textbook error, sorry it’s really hot in here!

    In case you’re interested, we’re using your plugin here: https://atouchofmrsrobinson.com/

    Thanks very much for the quick response. It’s been really easy for my clients to add the reviews without any intervention from me as it’s really intuitive for them! Good work!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need to use php without shortrcode’ is closed to new replies.