Support » Plugin: Post Snippets » PHP in theme template displays plain text instead of rendering the snippet

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Johan Steen

    (@artstorm)

    I see, so basically you need get_post_snippet to execute any shortcodes contained within the snippets.
    It would make sense that it did do that. I’ll have that changed for 2.1, being released soon.
    https://github.com/artstorm/post-snippets/issues/11

    Also note that in 2.1 I’ll deprecate get_post_snippet() and replace it with PostSnippets::getSnippet().
    get_post_snippet() will continue working for a few more versions, but it’s best to update any code using it to the new method, for future proofing.

    Cheers,
    Johan.

    Excellent. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP in theme template displays plain text instead of rendering the snippet’ is closed to new replies.