• Hi everyone.

    I have to list 5 latest post of the category “news” of my website ( ) like in this pic:
    <img>
    https://www.lucagrandicelli.com/wp-content/gallery/special-recent-posts-pro/1_recent_posts.jpg</img&gt;
    I found the Special Recent Post Plugin (the screen before) but the point if that i need a validate website and it cause about 20 errors…

    I searched in many sites but i didn’t succeed in find a “Manual Code” Solution… All don’t work like this one:

    <?php query_posts('category_name=news&showposts=5'); ?>
    <?php while (have_posts()) : the_post(); ?>
            <li><a href="<?php the_permalink(); ?>">
              <?php the_title(); ?>
    	<strong><?php the_post_thumbnail(); ?></strong>
    	<?php the_excerpt(); ?>
              </a>  </li>
            <?php endwhile; ?>

    Everything is displayed,but not the post image…

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Thread Starter Marco Milesi

    (@milmor)

    Hi everyone.

    I have to list 5 latest post of the category “news” of my website
    https://www.comunesampe.altervista.org like in this pic:
    https://www.lucagrandicelli.com/wp-content/gallery/special-recent-posts-pro/1_recent_posts.jpg
    I found the Special Recent Post Plugin (the screen before) but the point if that i need a validate website and it cause about 20 errors…

    I searched in many sites but i didn’t succeed in find a “Manual Code” Solution… All don’t work like this one:

    <?php query_posts('category_name=news&showposts=5'); ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <li><a>">
              <?php the_title(); ?>
    	<?php the_post_thumbnail(); ?>
    	<?php the_excerpt(); ?>
              </a>  </li>
            <?php endwhile; ?>

    [please mark any code using the code button or backticks – the above code is already corrupted]

    Everything is displayed,but not the post image…

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • The topic ‘Create a post list of a specified category with thumb’ is closed to new replies.