Forums

strip_tags(the_content('More'), '<a><strong>'); (3 posts)

  1. c-bass
    Member
    Posted 11 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 &raquo;'), '<a><strong>');

    it doesnt work. why?

    thank your very much in advance

  2. filosofo
    Member
    Posted 11 months ago #

    You want get_the_content instead of the_content.

  3. deuts
    Member
    Posted 1 month ago #

    @filosofo, this has been helpful in my case! thanks!

Reply

You must log in to post.

About this Topic

Tags