• Hello guys,

    I want to show thumbnail in related post. I’ve made page template using this code below.

    http://travelingwithkids.com.au/about-bali

    <div class="related-post">
    <h2>here is latest post about bali</h2>
    <?php
    $catquery = new WP_Query( 'cat=2&posts_per_page=4' );
    while($catquery->have_posts()) : $catquery->the_post();
    ?>
    
    <ul>
    <li>
    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    </li>
    </ul>
    <?php endwhile; ?>
    </div>

    P.S. I’m using Genesis framework.

    Any help?

    Thanks in advance.

    Shohag

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing thumbnails on related post in page’ is closed to new replies.