Fatih Tercan
asked 9 years ago

Hi Dominic.

can we show article when it’s released on Must Read articles .

1 Answers
DominicStaff
answered 9 years ago

Hi,
If you want to display article date in the Must Read Articles section, you can open the \wp-content\themes\dw-focus\inc\nav.php file. Find the line 113 to line 125. Replace with the following code:

<div class="text-left">
  <div class="row">
   <?php $i = 1; while ( $r->have_posts() ) : $r->the_post();?>
    <div class="col-md-4">
    <article <?php post_class(); ?>>
    <div class="entry-thumbnail"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array( 40, 40 ) ) ?></a></div>
    <div class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a><?php echo ' - '?><span class="post-date"><?php the_date(); ?></span></div>
    </article>
    </div>
<?php if (  0 === $i % 3 ) : ?></div><div class="row"><?php endif; ?>
<?php $i++; endwhile; ?>
  </div>
</div>

Hope this helps !

Powered by DW Question & Answer Pro