• Resolved carbes

    (@carbes)


    I’m new to WordPress and HTML so please forgive me if I’m asking a stupid question …

    On my blog I have made a page called Glossary. I would like to be able to link to specific headings on this page from my posts. I have tried to do this by marking up the headings this way:

    <div id="someword">
    <h3>Some word</h3>
    </div>

    and linking in this way:

    <a href="https://www.mydomain.com/
    glossary#someword">Some word</a>

    This works fine, but … Every time I save a post with a link like this, it generates a comment, which I’m asked to moderate (“A new comment on the post #11 “Glossary” is waiting for your approval”). Of course, I’m asked to moderate because I want to moderate comments – but where does this comment come from?

    And what is the correct way of doing this?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am also seeing a similar problem. I had not been able to determine the pattern to these comments but now that you mention it, they all contained links. The last one had links to both external sites and other posts on my blog. I’ve just run a test and it turns out only the internal links generate these spurious comments.

    The comment comes up as being from my post, with my post’s URI and with my ISPs IP address. The body is a snippet of the original post.

    I use the recommended way of linking to internal posts:

    <a href="https://www.myblog.com/journal/index.php?p=29">internal link</a>

    I’m running wordpress 2.0.2

    This isn’t relevant to your main problem, but I wanted to point out that that <div> is unnecessary. You can just do this:

    <h3 id="someword">Some word</h3>

    Any body tag can take an id.

    On the issue of the *problem*, these are not comments but pingbacks. The only way to avoid them on your blog is to turn off pingback and trackback notification (Options > Discussion), or use relative urls:

    /journal/index.php?p=29

    when linking back to entries on your blog.

    Thanks!

    .slaps forehead and goes off to read glossary ??

    Thread Starter carbes

    (@carbes)

    Thanks from here as well. Though I have found the answer the hard way now …

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Comment generated when saving post with link to id name’ is closed to new replies.