[resolved] the_excerpt and the_content in the post of wordpress cause error (4 posts)

  1. viky081
    Posted 3 years ago #

    I am using the latest wordpress version, even I have a problem with post which contain href link is to be text on call the_excerpt (link is not working) but when I replace the_content its working?

    why and what's the reason from excerpt to content....

    its the sample code.....

    <?php while ( have_posts() ) : the_post(); ?>
    <?php the_author();?>
    **<?php the_content(); ?>**

    // the above the_content is display the href link normally but when I replace the_excerpt href link is not working in the post why and what's the reason

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Are you talking about links within the post excerpt?

  3. Michael
    Forum Moderator
    Posted 3 years ago #


    Also in the latter case, HTML tags and graphics are stripped from the excerpt's content.

    basically, the_excerpt() strips/removes all html tags, including link tags.

    consider using a plugin for advanced excerpts http://wordpress.org/extend/plugins/search.php?q=advanced+excerpt to keep some html tags.

  4. viky081
    Posted 3 years ago #

    Oh thanks for your timeful help Mr.alchymyth

Topic Closed

This topic has been closed to new replies.

About this Topic