WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. c-bass
    Member
    Posted 5 years 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. Austin Matzko
    Member
    Posted 5 years ago #

    You want get_the_content instead of the_content.

  3. deuts
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags