WordPress.org

Forums

Showing thumbnails on related post in page (3 posts)

  1. stoicshohag
    Member
    Posted 2 years ago #

    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

  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    We don't support commercial themes, so there's not much we can do for you but recommend you use a theme distributed here to be viable for support here.

    Otherwise please contact your theme's vendors regarding this.

  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic