Remove Comment Status from PHP Code

  • Author
    Posts
  • #497983

    jessemuir
    Member

    I’ve got this code that I’m trying to edit.

    <?php if (‘open’ == $post->comment_status) : ?>

    I’d like to remove the ‘$post->comment_status’ part and replace it with basically nothing. (if open, then don’t post comment status and continue).

    Does anyone have any idea what I can place here to avoid parse errors?

    #498193

    supportbot
    Member

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

    #498196

    jessemuir
    Member

    Nevermind, I had to remove this code:

    <p><?php _e(‘The comments are closed.’); ?></p>

    #498201

    You were in the wrong forum as the supportbot said.

    #498203

    jessemuir
    Member

    Did you figure that out yourself?

The topic ‘Remove Comment Status from PHP Code’ is closed to new replies.