function bfa_get_comments() { global $bfa_ata; // Load Comments template (on single post pages, and "Page" pages, if set on options page) if (is_single() or is_page() and $bfa_ata['comments_on_pages'] == "Yes") { // don't display on WP-Email pages if (intval(get_query_var('email')) != 1) { if (function_exists('paged_comments')) { // If plugin "Paged Comments" is activated, for WP 2.6 and older paged_comments_template(); } else { // This will load either legacy comments template (for WP 2.6 and older) or the new standard comments template (for WP 2.7 and newer) comments_template(); } } } }
?> <a href="<?php trackback_url(true); ?> " rel="trackback">Trackback URL</a> <?php } ?> </div> </div> </div> <?php paged_comments_template('/guestcomments.php'); ?> <?php } } else { ?> <p>Sorry, no posts matched your criteria.</p> <?php } ?> <?php