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

  1. ReverendMike
    Posted 5 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
    Posted 5 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(); ?>
    <?php wp_link_pages(array('before' => '<p>'.__('Pages', "magazine-premium").': ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    REMOVED>>>>>> <?php comments_template(); ?>

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

Topic Closed

This topic has been closed to new replies.

About this Topic