WordPress.org

Forums

content or excerpt (2 posts)

  1. Questin
    Member
    Posted 10 years ago #

    This is the conditional code i used with WP 1.2. Now is no more working on WP 1.5. What i have to change? It is for putting the excerpt instead of the content only if I have it.
    <?php
    if(!$post->post_excerpt) {
    the_content('<img src="kling.gif" /> more...');
    } else {
    the_excerpt();
    ?>
    " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="kling.gif" /> more...
    <?php
    }
    ?>

  2. Lorelle
    Member
    Posted 10 years ago #

    There are examples that will help you choose the right Loop for the change to 1.5 at http://codex.wordpress.org/The_Loop_In_Action

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags