WordPress.org

Ready to get started?Download WordPress

Forums

In need of help with: the_excerpt (2 posts)

  1. FionaGilbert
    Member
    Posted 4 years ago #

    `
    Hi all,

    I am using the_excerpt but wondered if there was a way to append the_time to the the_excerpt.

    I am trying to get this result:

    <p>Apr 20 : then some text here...</p>

    but instead I get:

    <p>Apr 20 :</p>

    <p>then some text here...</p>

    At present I use this code:

    <strong><?php the_time('M d') ?> :</strong> <?php the_excerpt(); ?>

    Can I put the_time within the excerpt brackets?

    Is there a way to get the code to display how I want?

    Thanks
    Fiona

  2. MichaelH
    Member
    Posted 4 years ago #

    If it is the hand-crafted excerpt you could always use the $post->post_excerpt value instead of the_excerpt().

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.