WP standard post dynamic
//as a developer we need to at first standard post dynamic.
standard post dynamic:
......................................
<?php while(have_posts()) : the_post(); ?>
<article class="post-single">
<div class="post-info">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<h6 class="upper"><span>By</span><a href="#"> <?php the_author(); ?></a><span class="dot"></span><span><?php the_time('F d, Y'); ?></span><span class="dot"></span><a href="#" class="post-tag"><?php the_tags(); ?></a></h6>
</div>
<div class="post-media"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a></div>
<div class="post-body">
<p><?php echo wp_trim_words(get_the_content(), 30, false); ?></p>
<p><a href="<?php the_permalink(); ?>" class="btn btn-color btn-sm">Read More</a></p>
</div>
</article>
<?php endwhile; ?>
No comments