PHP in theme template displays plain text instead of rendering the snippet
-
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 ( https://screencast.com/t/SX8xq2xT ).Please help me render the content via php.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
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.