Advertisement
fauzanjeg

Add Post Date After Article

Aug 6th, 2021
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. /* Add Post Date After Article */
  2. function add_date_after_article() {
  3.     $single = JNews\Single\SinglePost::getInstance();
  4.     ?>
  5.     <div class="jeg_meta_date">
  6.         <a href="<?php the_permalink(); ?>"><?php echo esc_html( $single->post_date_format( get_post() ) ); ?></a>
  7.     </div>
  8.     <?php
  9. }
  10. add_action( 'jnews_source_via_single_post', 'add_date_after_article' );
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement