One of my lovely clients has asked for comments in a lightbox. Lovely and user-friendly.
Anyway, I have got it working for posts but when you click comment on pages it doesn't show the comments or comment form on the custom comment page.
This is a bit of a mashup of various tutorials I have read so please don't scream...
<?php require $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php'; ?>
<?php
query_posts('name='.$_GET['name']);
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="lightcomments">
<h3>Comments for <?php the_title(); ?></h3>
<?php
// calling the comments template
thematic_comments_template();
?>
<?php $withcomments = 1; ?>
<?php endwhile; endif; ?>
<?php wp_reset_query(); ?>
Would really appreciate any pointers anyone can provide.
Many thanks,
Sam