WordPress.org

Ready to get started?Download WordPress

Forums

Comments ain't working though set up right (5 posts)

  1. ludvig87
    Member
    Posted 9 years ago #

    I have set up the latest wordpress on 3 of my sites and the comments works on neither of them...
    They should all load on index.php?p=??#comments but they don't. If I put in /wordpress before and then load the page, they work simply as that...
    But I can't make them load on index.php?p=??#comments. I have made sure that the blog url is the right one and that the home is the right one as well...
    How can I fix my problem?? I am not a newbie but for some reason I can't fix this problem.

  2. akb
    Member
    Posted 9 years ago #

    do you mean that it loads properly with the URL reads
    /wordpress/index.php?p=#comments
    but does not if you leave out the /wordpress?
    Although I *am* a newbie, I will hazard a guess that your index.php is installed in a /wordpress subdirectory. Ok, that may be too obvious and not the answer you are looking for. Is the index.php working if you simply type that in for a URL without the /wordpress preceeding it? Have you done some sort of redirect using -- I don't know -- .htaccess or something similar? Are there any other idiosyncracies to your set-up?

  3. moshu
    Member
    Posted 9 years ago #

    What do you mean by "the latest wordpress "?? Nighly?
    If yes, please visit this:
    http://wordpress.org/support/3/12916

  4. NuclearMoose
    Member
    Posted 9 years ago #

    Do you have rewrite rules set up for your site?

  5. ludvig87
    Member
    Posted 9 years ago #

    the mingus version....
    the index is in the root with the abspath to wpcomments.php..
    code is this:
    <?php
    /* Don't remove this line. */
    require('wordpress/wp-blog-header.php');
    ?>
    <? include("header.php") ?>
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php static $counter = 1; if ( $counter > "20" ) { break; } else { if ( in_category(2) && !$single ) { ?>
    <?php the_date('','<h5>','</h5>'); ?><h6><div align="right">Posted by <?php the_author() ?></div></h6>
    <?php the_content(); ?>
    <?php include(ABSPATH . 'wp-comments.php'); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    <?php $counter++; } } ?>
    <?php endforeach; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    <? include("footer.php") ?>
    Wordpress is installed to /wordpress, index is in root, blog url is set to have the /wordpress in it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.