• Resolved sdesigns

    (@sdesigns)


    I am trying to show the recent posts from my post type outtakes and have it show the first post with the thumbnail, title, excerpt then have the other 4 just a list of the tittles. Below is the code that I am trying to use but I can’t seem to get it to show the custom post type.

    Thank you any help would be great I have been working on this for some time now and cant find a solution anywhere in the forums.

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. Not the single quote. ]

    <?php if (have_posts()) : ?>
    
    <?php $count = 0; ?>
    
    <?php while (have_posts()) : the_post(); ?>
    
    <?php $count++; ?>
    
    <?php if ($count <= 1) : ?>
    
    <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    
    <?php the_title(); ?></a></h2>
    
    <?php the_excerpt(); ?>
    
    <?php else : ?>
    
    <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <?php the_title(); ?></a></h2>
    
    <?php endif; ?>
    
    <?php endwhile; ?>
    
    <?php else : ?>
    
    <?php endif; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Recent Post With Excerpt Then Display Titles’ is closed to new replies.