Skip to content

Instantly share code, notes, and snippets.

@epicdaze
Created June 14, 2011 21:54
Show Gist options
  • Save epicdaze/1026011 to your computer and use it in GitHub Desktop.
Save epicdaze/1026011 to your computer and use it in GitHub Desktop.
#wordpress - comments are closed #ifelse #comments
<!-- /* use this to show if comments are open or closed */ -->
<?php comments_open();
if ('closed' == $post->comment_status)
{ _e('Comments are closed',themedomain); }
else
{ _e('Comments are open',themedomain); }
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment