P2 Theme functions in my theme?
In the P2 theme there seems to be a way to use two separate comment forms. They use the following code:
<?php if ( ( is_home() || is_front_page() ) ) $withcomments = true; if ( is_single() ) comments_template(); else comments_template('/inline-comments.php'); // Only append comment form to first post with open comments if( ( !isset($form_visible) || !$form_visible ) && !is_single() && 'open' == $post->comment_status ): $form_visible = true; ?>
Basically, I have two separate page templates that I want to employ two separate comment templates on. How would I make the above work for me?
I’ve tried the whole including another template file (doesn’t work), I’ve searched the forum and can’t find any suggestions that work. I’m hoping someone can answer this question.
- The topic ‘P2 Theme functions in my theme?’ is closed to new replies.