• Resolved baileys2611

    (@baileys2611)


    Hi – trying to find the documentation on this plugin and unsuccessful so I’ll post two questions please: a) is there documentation on limitations or advanced use and b) can I use shortcodes in snippets, such as twig anything shortcodes for SQL queries?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hello,

    for (a), what sort of advanced use are you referring to? and which sorts of limitations? I’m not really sure what you’re looking to find out. Essentially, you add PHP code that runs inside the WordPress ecosystem (anything you could place in a plugin file, essentially), and it will be executed on your site.

    For (b), do you mean you would like to evaluate shortcodes in snippets, or register a new shortcode for use elsewhere? If it’s for the first one, then you can use the do_shortcode() function, e.g.

    $result = do_shortcode( '[twig-anything slug="template slug"]' );

    Thread Starter baileys2611

    (@baileys2611)

    Mate – you’re awesome. Thank you for coming back.

    For a, I was looking to see if I could figure out the answer to b without bothering you is all.

    For b – answer is perfect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shorcodes in snippets?’ is closed to new replies.