Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- while(have_posts()) {
- the_post(); ?>
- <div>
- <a href="#">
- <span<?php
- $typeDate = new DateTime(get_field('type_date'));
- echo $typeDate->format('M')
- ?></span>
- <span><?php echo $typeDate->format('d') ?></span>
- </a>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <p>
- <?php echo wp_trim_words(get_the_content(), 18); ?>
- <a href="<?php the_permalink(); ?>">Learn more</a>
- </p>
- </div>
- <?php }
- echo paginate_links();
- ?>
Add Comment
Please, Sign In to add comment