• Resolved fvbussel

    (@fvbussel)


    I’m using the theme twenty-seventeen and the most recent version of WordPress.
    I don’t know if this is a plugin problem or a theme problem.
    See my blog page.
    2 columns,
    left:The most recent post and a post navigation, NO comment form.
    right: Most recent post (Meest recente berichten) and archive.
    When I click on a post in the most recent post area, the post is shown up WITH a comment form and the post navigation.
    I also want the comment form when the page is opened with the most recent post.
    What I’m doing wrong?

    Thanks in advanced,
    Frans

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi @fvbussel,
    there should not be any comment form on posts lists, on posts archives and on category pages. Comment forms only exist on single post pages. It doesn’t matter you use wpDiscuz or the default comment form, it only exists on the single post page. So all is correct, you should not see that on your home page, because it’s not a single post page, it’s a list of posts, even if the list contains one post per page.

    Thread Starter fvbussel

    (@fvbussel)

    Thank you for your reacton.
    Is it possible to redirect the blog page to the most recent post?

    Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @fvbussel,

    You should use the following hook to redirect the blog page to the most recent post:

    add_action('wp', function () {
        if (is_home()) {
            $args = array(
                'posts_per_page' => '1',
                'post_type' => 'post'
            );
            $post = get_posts($args);
            if ($post) {
                $url = get_permalink($post[0]->ID);
                wp_redirect($url, 301);
                exit;
            }
        }
    });

    The hook should be added in the current active theme functions.php file.

    Thread Starter fvbussel

    (@fvbussel)

    Thank you very much …that’s what I was looking for.

    • This reply was modified 3 years, 12 months ago by fvbussel.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Missing comment form’ is closed to new replies.