Support » Plugin: Comment Guestbook » CG on homepage

  • Resolved Jack7CZ


    Hello there,

    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:

     $temp = $wp_query; $wp_query= null;
     $wp_query = new WP_Query();
    	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.

Viewing 1 replies (of 1 total)
  • Plugin Author mibuthu


    Would it be possible to use a “static page” (the guestbook page) as your “Front page display” (see Settings -> Reading), or do you have other things on your homepage?

Viewing 1 replies (of 1 total)
  • The topic ‘CG on homepage’ is closed to new replies.