I´m trying to get work this plugin on my website´s homepage. First od all I used do_shortcode() function in home.php. But it wasn´t working, becase it wasn´t attached to any post/page (I think).
So after that, I created page, where I put the Commnet Guestbook shortcode. And in home.php I put something like this:
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('pagename=zed'); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php the_content(); ?> <?php endwhile; wp_reset_query(); ?>
Comment Guestbook was finally on my homepage. But! When I try to submit comment or go to second comment page I am redirected to original page with CG.
Is there any code I can put to my functions.php to get CG working on home?
Thank you for your help in advance.
- The topic ‘CG on homepage’ is closed to new replies.