Skip to content

Instantly share code, notes, and snippets.

@jazbek
Created October 4, 2013 04:32
Show Gist options
  • Select an option

  • Save jazbek/6820959 to your computer and use it in GitHub Desktop.

Select an option

Save jazbek/6820959 to your computer and use it in GitHub Desktop.
Fix comments form not working when using default events template
<?php
add_action( 'template_redirect', 'tribe_fix_comments' );
function tribe_fix_comments() {
if ( tribe_get_option( 'tribeEventsTemplate', 'default' ) == '' ) {
return apply_filters( 'comments_template', STYLESHEETPATH . '/comments.php' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment