WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Excerpt instead of post in Asides (3 posts)

  1. JaneLitte
    Member
    Posted 7 years ago #

    I am using Rhymed Code's code for Asides in my sidebar. (say that 5 x fast). Rhymed Code uses the following:

    <?php echo wptexturize( $post->post_content ); ?>

    I want to use the_excerpt instead but when I do that a large space (like an unwanted br/) appears between the title and the contents of the aside.

  2. Kafkaesqui

    Posted 7 years ago #

    Try this:

    <?php echo wptexturize( get_the_excerpt() ); ?>

  3. JaneLitte
    Member
    Posted 7 years ago #

    Ahh, you are great. Really great because after that hint, I was able to insert your plugin, the excerpt reloaded.

    <?php echo wptexturize(the_excerpt_reloaded(15,'','',false)); ?>

    Thanks much for your help! Now, if I could only get ajax inline comments to work . . .

Topic Closed

This topic has been closed to new replies.

About this Topic