[resolved] Comment links not working and different on different sites (5 posts)

  1. jtt89
    Posted 3 years ago #

    I have a theme with a code for comments like this:

    <?php comments_popup_link(__('Write a comment', 'picochic'), __('1 comment', 'picochic'), __('% comments', 'picochic')); ?>

    Comments work on original theme, and dont work on other blogs, even though the code is exactly the same. I get the following links:

    a) Root site


    , which leads to a 404 Error page

    b) Other sub site with this theme displays the same code and also goes to a 404 Error

    c) Original theme on another subsite (comments are working)


    I am wondering where is this difference coming from, since the code is exactly the same for all three blogs, and how to fix it and get comments to work.

    Thank you.

  2. What's the difference between 'Original theme' and the ... theme that isn't working?

  3. jtt89
    Posted 3 years ago #

    There is no difference in the code. I was only chaning the CSS file. Both of the sites (working and not working) are non-root domains on Multisite so this is not what is causing the difference.

    The only other difference is that I uncommented

    require_once (get_template_directory().'/includes/theme-options.php');

    in functions.php because it was loading unnecessary code with wp_head(), but this doesnt look like it would have anything to do with comments.

  4. Undo any changes you made and test again.

    Generally when we're sure this change had nothing to do with it, that's the problem ;)

  5. jtt89
    Posted 3 years ago #

    I think I figured it out. I was missing a the_permalink() function in the code.


    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.