Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Pitabas

    (@pitabas106)

    Hi,

    Thanks for using the Ascent theme. In this theme template there is no option for display the featured image to category/archive page.

    If you want to display the featured image then you have to modify the “content.php” template using a child theme.
    In this file add the below code after line number 39.

    `<?php $format = get_post_format($post->ID); ?>
    <?php if (has_post_thumbnail($post->ID)): ?>
    <?php
    $image_id = get_post_thumbnail_id();
    $full_image_url = wp_get_attachment_url($image_id);
    ?>
    <?php if ( ” != get_the_post_thumbnail() ): ?>
    <figure>
    <a class=”swipebox” href=”<?php echo $full_image_url; ?>” title=”<?php the_title(); ?>”>
    <?php the_post_thumbnail(‘blog-page’); ?>
    </a>
    </figure>
    <?php endif; ?>
    <?php endif; ?>`

    Thread Starter allbins

    (@allbins)

    Hi Thanks but that didnt work…

    Luke

    Thread Starter allbins

    (@allbins)

    got it working after putting code after line 31

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post Images Show In Caregories Pages’ is closed to new replies.