• I’m not really sure what problems snippets solve over the old [insert_php] approach.

    With the old approach, I could make use of the shortcodes from my theme so that the conditional elements I added to my page under the control of PHP logic fit in with my theme to the extent that their shortcodes supported. With the snippet approach, theme shortcodes are not accessible and just get presented as plain text on my pages. Making the parts of my pages that are under PHP control look right, look consistent with my theme, is more difficult now.

    I see a loss in functionality. I’m not sure what the improvement is that compensates for that.

Viewing 1 replies (of 1 total)
  • Hi David

    Thank you for using our plugin.

    I would like to clarify that it is possible to use shortcodes of theme/plugins in php snippet.
    To do this, use the WordPress function do_shortcode.

    Example:
    echo do_shortcode('[your_theme_shortcode]');

    You can also put this in a conditional block if you want.

    Best regards, Kirill
    Webcraftic team

Viewing 1 replies (of 1 total)

The topic ‘Doesn’t work with Theme shortcodes’ is closed to new replies.