WordPress.org

Support

Support » Plugins and Hacks » [Resolved] CG on homepage

[Resolved] CG on homepage

  • 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:

    <?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.

    https://wordpress.org/plugins/comment-guestbook/

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

    @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 ‘[Resolved] CG on homepage’ is closed to new replies.