• Hey there,
    first of all, thanks to all Devs for creating this wonderful thingy!!!!
    I’m having a little prob, though: everything is working fine on my blog except that the comments are not showing up on individual post pages/ permalinks.
    Here’s the normal page, where all comments work:
    https://www.feldfunker.de
    …and this is an example of a permalink page where comments are missing:
    https://www.feldfunker.de/index.php?p=222
    Anyone got an idea what’s wrong with my code?
    Thx in advance, Bjoern.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you forgot to put an include(); to wp-comments.php in the principal template?
    You have to put it, if you want WordPress put the comments in the perma-link post

    Thread Starter feldfunker

    (@feldfunker)

    Honestly, I don’t understand your suggestion – I thought the page generated for a single post is using the same template.php page as the other pages? I don’t even use wp-comments as far as I know, just the comments pop-up…
    Anyway, where do I have to put this include? Sorry, but I have no idea of PHP…

    Yes, WordPress uses the same template for the post page, but when you use any class of Perma-link, “the loop” will show just one post.
    The loop is the bit of code that use WordPress for show the posts (and their comments, if you request a permalink), and the search’s results
    You put the include after <?php trackback_rdf(); ?> and before <?php endforeach; else: ?>.
    And the include is…:
    <?php include(ABSPATH . 'wp-comments.php'); ?>
    That’s all.
    (If you need more help, just ask =))

    Thread Starter feldfunker

    (@feldfunker)

    Thanks a lot, I’m starting to understand. Still, this displays the comments on the individual page which messes up my layout, is their any way to get the pop-up working there?
    Thanks again. ??

    De nada ??
    (Traslation: You are welcome)
    I’ll try to do and test a code you can use for show pop-up comments in your Permalink page.
    Stay tuned.
    [Hint: si(existe variable p)
    {
    escribir “sitio/wp-comments-popup.php?p=”.variable p.”
    }]

    <?php
    if(isset($_GET["p"])) /* We check if the ID of the post exists */
    {
    /* We write the link to pop-up comments */
    print("Clic here for see comments");
    }
    ?>

    If you get any kind of errors, just post again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Comments not showing up on Permalink pages’ is closed to new replies.