Viewing 15 replies - 1 through 15 (of 15 total)
  • What does your single.php template use to generate the comment link?

    Same problem, veronicacannon, what did you do to solve?

    Same problem, veronicacannon, what did you do to solve?

    If you have the same problem…the same question applies!

    What does your single.php template use to generate the comment link?

    Oh boy, I am a complete newb, so I don’t understand this php talk at all. This is what my single.php file contains

    <?php get_header(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”postheader”>
    <h1>“><?php the_title(); ?></h1>
    <div class=”dateauthor”><?php the_time(get_option(‘date_format’)); ?> <?php _e(‘by’, “snowblind”); ?> <?php the_author_posts_link(); ?></div>
    </div>
    <div class=”content”>
    <?php the_content(”); ?>
    <?php the_tags( ‘<p class=”tags”><small>’.__(‘Tags’, “snowblind”).’: ‘, ‘, ‘, ‘</small></p>’); ?>
    <p class=”postmetadata”>
    <small>
    <?php _e(‘This entry was posted on ‘, “snowblind”).the_time(get_option(‘date_format’))._e(‘ at ‘, “snowblind”).the_time(get_option(‘date_format’))._e(‘ and is filed under ‘, “snowblind”).the_category(‘, ‘); echo ‘. ‘; _e(‘You can follow any responses to this entry through the ‘, “snowblind”).post_comments_feed_link(‘RSS 2.0’)._e(‘ feed.’, “snowblind”); ?>
    </small>
    </p>
    <?php wp_link_pages(array(‘before’ => ‘<p>‘.__(‘Pages’, “snowblind”).’: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
    </div>
    <?php comments_template(); ?>
    <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’, “snowblind”); ?></p>
    <?php endif; ?>
    <?php get_footer(); ?>

    Does that help at all?

    code gets all jacked up on here if you don’t post it between backtics…. (or for large chunks of code…throw it in a pastebin….)

    it makes it hard to read, and therefore help. Also….simple things….you have it set up so people are allowed to comment in your settings??

    Oh wow, now I’m really lost! Do I paste the code into the pastebin and download it? I don’t have a clue what to do with it after pasting it there :s

    To answer your question, yes I have allowed comments in both the “discussion” settings, and in the settings of the individual posts.

    One thing that I have thought may be causing the issue is that I have my posts set to go to a page other than the home page. Though I tried moving them back to the main page and still had the same problem.

    <?php get_header(); ?>
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div class="postheader">
            <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
            <div class="dateauthor"><?php the_time(get_option('date_format')); ?> <?php _e('by', "snowblind"); ?> <?php the_author_posts_link(); ?></div>
        </div>
        <div class="content">
        	<?php the_content(''); ?>
    		<?php the_tags( '<p class="tags"><small>'.__('Tags', "snowblind").': ', ', ', '</small></p>'); ?>
    		<p class="postmetadata">
    		<small>
    		<?php _e('This entry was posted on ', "snowblind").the_time(get_option('date_format'))._e(' at ', "snowblind").the_time(get_option('date_format'))._e(' and is filed under ', "snowblind").the_category(', '); echo '. '; _e('You can follow any responses to this entry through the ', "snowblind").post_comments_feed_link('RSS 2.0')._e(' feed.', "snowblind"); ?>
            </small>
    		</p>
      		<?php wp_link_pages(array('before' => '<p><strong>'.__('Pages', "snowblind").':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    	</div>
    	<?php comments_template(); ?>
    	<?php endwhile; else: ?>
    		<p><?php _e('Sorry, no posts matched your criteria.', "snowblind"); ?></p>
    <?php endif; ?>
    <?php get_footer(); ?>

    when you paste things in the pastebin, you save it there, and then report the url back here so we can look!

    The standard things to look at with comments issues (and many issues) are
    1. Deactivate all plugins
    2. Switch back to the default theme for WordPress
    3. Test comments

    If they still don’t work, we have a deeper problem

    If they do then try switching to your theme again and testing. If that goes well, activate your plugins one by one til you find the conflict.

    Great suggestion, I appreciate that. I will try that and report back. Also appreciate you teaching me how to use pastebin, that will surely come in handy!

    yeah…it helps everyone on here really….its easier to read teh codes!

    OK so I deactivated all of my plugins and switched back to default theme, and it still does the same thing :(… This sure is frustrating! Thanks for your help and patience in dealing with a newb ??

    BTW – here is a link to my site, if that is any help https://www.adamweitner.com, and my blog page https://www.adamweitner.com/blog

    OK, and the final ‘standard’ thing….looking at your site….it looks like something may be jacked up with your permalinks

    go into settings->permalinks and set yourself back to default (may even wanna delete the .htaccess from your wordpress directory on your host to make sure you are totally reset)

    with permalinks as default, try out your comments…..if it works then go back to your pretty/custom permalinks setup
    (if you deleted the .htaccess, it will be automaticall regenerated)

    RVoodoo, your final suggestion is, in fact, the culprit! Thank you, and user “Esmi” both, so much for your help. Though I’m a big time newb with this stuff, thanks to people like you I will continue to get better at it at least!

    Thanks again,
    Adam

    reading these forums, and the docs….along with trial, and MUCH error is how I learned!

    Good luck, enjoy!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Comment box never pops up when click on “add a comment”’ is closed to new replies.