Advertisement
fauzanjeg

Show Comment in Page

Jun 30th, 2021
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. /** Show Comment in Page */
  2. function show_comments_box() {
  3.     if ( ( is_single() || is_page() ) && ( comments_open() || get_comments_number() ) && ! post_password_required() ) {
  4.         ?>
  5.         <div class="comments-wrapper section-inner">
  6.             <?php comments_template(); ?>
  7.         </div><!-- .comments-wrapper -->
  8.         <?php
  9.     }
  10. }
  11. add_action( 'jnews_after_main', 'show_comments_box' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement