• Resolved craiggroshek

    (@craiggroshek)


    I cannot find any info on how to call the shortcodes created with Shortcoder in PHP, for use in Post Templates. I’m looking to have one of our shortcodes execute globally before content on ALL of our posts, retroactively, and rather than edit 1000+ posts and manually paste the shortcode into them all, it seems editing the post templates to include it always would be the better route to go.

    The trouble is, I cannot find any official resource on how to do it on any of the forums, yet.

    Someone in the comments on this forum, not the develop discussed how “to call from WordPress PHP,” and said to wrap the below in PHP tags (as it wouldn’t allow her to do so in the comments). Can you speak to whether the below is accurate, or if there is a specific script which needs to be used to call the shortcodes in PHP/templates?

    Thanks in advance for your help!

    echo do_shortcode(“[sc name=’shortcoderName’]”);

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Calling Shortcoder codes in post templates using PHP’ is closed to new replies.