If I create a snippet and insert its shortcode into the content area, it displays as desired.
If I have this in my page template:
echo get_post_snippet( 'test' );
it displays all the plain text, not actually rendering the content ( http://screencast.com/t/SX8xq2xT ).
Please help me render the content via php.
- The topic ‘PHP in theme template displays plain text instead of rendering the snippet’ is closed to new replies.