Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5651

    Hello,

    Please can you help me figure out the code I need to create the Latest News column as featured in the demo?

    From the demo, I see that a post has a featured image, from which a thumbnail is created with the title and an excerpt from the post. I got as far as creating the title and excerpt (see below) which is included in the footer column widget, but got stuck with the resizing of the image. Please can you help?!

    Any help is very much appreciated. Thank you!

    <?php query_posts('category_name=news-and-updates&showposts=5'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink(); ?>">
    <?php the_title('<h4>', '</h4>'); ?>
    <?php the_content("Continue reading " . the_title('', '', false)); ?>
    </a> </li>
    <?php endwhile; ?>

    #51269

    Hey,

    what is wrong with the Avisio Sidebar News widget? It shows exactly what you need, the thumbnail is the featured image connected to the post.

    #51270

    Okay, that’s what I needed! I didn’t notice the widget, duh. Thank you!

    #51271

    Glad that Chris could help you :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Create Latest News column as featured in the demo’ is closed to new replies.