• and it’s doing my head in!
    Site

    I’ve made two posts, one is stickied, the problem happens with both.
    I have some plugins, and have deactivated them and the problem is still there.
    People are allowed to comment on the posts. There was a point when I was able to.
    Fiddle about with some settings in discussion, still nothing.

    Can anyone help please? I’ve searched but had no results, and I really don’t have a clue.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I can see that the titles of your blog posts do the same too.

    In the loop, usually you have something like this
    <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    Maybe check your permalink settings and see what’s going on there. Looks like the page AboutContact has been hard coded in there.

    Thread Starter Pod42

    (@pod42)

    I just tested that, I’m using Custom Structure, and the link in there was /aboutcontact
    I’ve left it blank but now when I click on comment it just puts a #respond at the end of the url, doing nothing.

    Thanks for the quick reply, do you have any more help? Really appreciate it

    [Update]
    So I just set the permalinks back to default, and now some pages don’t work, the comments do.

    The #respond should link to the at the top of the comments.php template. It doesn’t look like your theme is set up to accept comments.

    Are you allowing comments in your admin. >> Settings > Discussion

    Do you have the function <?php comments_template(); ?> in your theme.

    Thread Starter Pod42

    (@pod42)

    They’re enabled in settings, and I think it must be set up because changing the permalinks back to default made them work.

    I would leave it like that but a lot of pages and plugins will be affected.

    I searched for <?php comments_template(); ?> in comments.php and functions.php but couldn’t find it.

    <?php comments_template(); ?> should be in your index.php. This is needed to make the comment form appear. It should also be in your single.php file and page.php if you want comments on your pages. I usually take this function off my page.php.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post comment link directs to contact page’ is closed to new replies.