WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing "Comments are closed" from Static Pages (2 posts)

  1. ReverendMike
    Member
    Posted 3 years ago #

    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?

  2. ReverendMike
    Member
    Posted 3 years ago #

    <?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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic