Support » Plugins and Hacks » strip_tags(the_content(‘More’), ‘<a><strong>’);
7 years, 9 months ago
Hey i would like to show on the frontpage 1 article quite detailed but without images. i have found a template which used strip_tags functions for excperts and it does work:
<p><?php echo strip_tags(get_the_excerpt(), '<a><strong>'); ?></p>
now i just want to do the same with the content function:
strip_tags(the_content('Ganzen Beitrag lesen »'), '<a><strong>');
it doesnt work. why?
thank your very much in advance
You want get_the_content instead of the_content.
6 years, 11 months ago
@filosofo, this has been helpful in my case! thanks!