Comment Guestbook
[resolved] CG on homepage (2 posts)

  1. Jack7CZ
    Posted 2 years ago #

    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.


  2. mibuthu
    Plugin Author

    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Comment Guestbook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic