WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Removing "Comments are closed" from Static Pages

[Resolved] Removing "Comments are closed" from Static Pages

  • ReverendMike

    @reverendmike

    I’d like to post static Pages and remove the string “Comments are closed” from the pages entirely, but still allow comments on Posts. Is there any way to do this?

Viewing 1 replies (of 1 total)
  • ReverendMike

    @reverendmike

    <?php get_header(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”ind-post” id=”post-<?php the_ID(); ?>”>
    <h1><?php the_title(); ?></h1>
    <div class=”entry”>
    <?php the_content(); ?>
    </div>
    <?php wp_link_pages(array(‘before’ => ‘<p>‘.__(‘Pages’, “magazine-premium”).’: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
    </div>
    REMOVED>>>>>> <?php comments_template(); ?>

    <?php endwhile; endif; ?>
    <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Removing "Comments are closed" from Static Pages’ is closed to new replies.
Skip to toolbar