WordPress.org

Ready to get started?Download WordPress

Forums

Ugh - Comments Links (20 posts)

  1. edreams
    Member
    Posted 8 years ago #

    Would anyone have any idea why my comments links arent working???

    Thanks!

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Hover your comment links and look where they point - you have made a mistake somewhere in your template.

  3. edreams
    Member
    Posted 8 years ago #

    not my template...
    hhhmmm do you have any idea where that could be... I'll look around...

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Look at your comments link - it gives your domain twice. So somewhere, instead of the actual code, something else has been inserted.

    If it doesn't look like this, it's broken:
    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>

    </div>

    <?php comments_template(); // Get wp-comments.php template ?>

  5. edreams
    Member
    Posted 8 years ago #

    in which of the templates? main? comments?

  6. Mark (podz)
    Support Maven
    Posted 8 years ago #

    index / main

    Where did you get the template ?

  7. edreams
    Member
    Posted 8 years ago #

    This is my comments template:

    [Moderated - unneeded code removed]

  8. edreams
    Member
    Posted 8 years ago #

    This is my index/main

    <?php get_header(); ?>

    <!-- begin content -->
    <div id="content" class="narrowcolumn">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class="divTitle1">
    <div class="divTitle3"><span class="titolino"><?php the_title(); ?></span>
    Posted on : <?php the_time('F jS, Y') ?> @ <?php the_time('g:i a'); ?> by <img src="images/name.gif" alt="name" title="name"/> </div></div>
    <div class="post" id="post-<?php the_ID(); ?>">
    <span class="pside">Admin :</span><?php edit_post_link('Edit the post.','',''); ?>
    <span class="pside">Post category :</span> <?php the_category(', ') ?>
    <span class="pside">Link to post :</span> ">permalink
    <span class="pside">Comments :</span> <img src="/images/speechbubble.gif" alt="speechbubble" title="speechbubble"/> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
    <div class="entry">
    <?php the_content('Read the rest of this entry »'); ?>
    </div>

    </div>
    <?php comments_template(); // Get wp-comments.php template ?>

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
    </div>

    <?php else : ?>
    <div class="box">
    <h2 class="center">Not Found</h2>
    <p class="center">Sorry, but you are looking for something that isn't here.
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>
    </div>
    <?php endif; ?>

    </div>
    <!--end content -->

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I got it from http://v4ny.net/

  9. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Have you asked the theme author / checked their site / checked comments on their site for others with this issue ?

  10. edreams
    Member
    Posted 8 years ago #

    no
    it had seemed like it was working earlier...
    and I just downloaded the file again directly from the site, and it looks the same *sigh*

  11. Mark (podz)
    Support Maven
    Posted 8 years ago #

    In Options, are the two urls the same ?
    (Don't go changing anything, just check)

  12. edreams
    Member
    Posted 8 years ago #

    yes

  13. edreams
    Member
    Posted 8 years ago #

    ha, I feel like Im going outta my mind cuz I dont know what the heck happend LOL

    and Im startin' to get really really tired...

    whats your email addy? I could always have you log into my account (I see that you are going to be doing this for a living, I trust ya) ;) and if you get some time, check it out for me?

  14. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Can you paste your index (the above file) here:
    http://phpfi.com/

    It'll be easier to read. post the url back.

  15. edreams
    Member
    Posted 8 years ago #

    hope I did this right

    http://phpfi.com/74880

  16. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Wierd ... outside of the post div, it's all good. The feed links are good.
    But inside the post div, the permalink and the comments link are doubling your url - and I cannot see why ..

  17. edreams
    Member
    Posted 8 years ago #

    *cry*

  18. edreams
    Member
    Posted 8 years ago #

    hhhmm well maybe someone can help me out tomorrow, I really have to go to sleep now...

  19. edreams
    Member
    Posted 8 years ago #

    just woke up...

    no developments???

  20. gromki
    Member
    Posted 8 years ago #

    Under the main directory (wordpress) create ".htaccess" file and add "DirectoryIndex index.php" to it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.