I want to get the page content (so i can parse the tags/short-codes in it), but i don’t want to output the result itself to the browser (i.e. echo=0).
I tried get_the_content(); but its the same deal.
I want to get the page content (so i can parse the tags/short-codes in it), but i don’t want to output the result itself to the browser (i.e. echo=0).
I tried get_the_content(); but its the same deal.
You must be logged in to post a comment.
Where are you doing your code parsing? If you’re doing it directly in the template file, inside the Loop, then you should be using
get_the_content()
.However, it might be more efficient to filter
the_content()
, via thethe_content
filter. e.g. infunctions.php
:EDIT
If, for whatever reason, you just want to parse
the_content()
, pull out the shorcodes, and execute them, usedo_shortcode()
(Codex ref). e.g.:You can try this :