Support » Fixing WordPress » Comments not working.

Viewing 9 replies - 1 through 9 (of 9 total)
  • the link doesn’t work 🙁

    Where’s your index.php file?

    you do not seem to have an index.php. The comments don’t work because you do not have an index.php and the comments are displayed on index.php
    The wp.php file is a relic that has been around for a while. It basically gives you a look at what the unstyled content looks like. So it may not work like you want it to…
    If you want to rename your index.php change “blogfilename” in the options table in your “options” table (using phpmyadmin or similar) to what you want to call your index.php.

    I have a index.php file though. It’s in my FTP I don’t know why it’s not working..
    /* Don’t remove this line. */
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”>
    <html xmlns=””>
    <head profile=”″>
    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>
    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
    <style type=”text/css” media=”screen”>
    @import url( <?php echo get_settings(‘siteurl’); ?>/wp-layout.css );
    <link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘siteurl’); ?>/print.css” />
    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    <div id=”rap”>
    <h1 id=”header”>“><?php bloginfo(‘name’); ?></h1>
    <div id=”content”>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date(”,'<h2>’,'</h2>’); ?>
    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h3>
    <div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
    <div class=”storycontent”>
    <?php the_content(); ?>
    <div class=”feedback”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
    <?php trackback_rdf(); ?>
    <?php include(ABSPATH . ‘wp-comments.php’); ?>
    <?php endforeach; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>
    <div id=”menu”>

      <?php get_links_list(); ?>
      <li id=”categories”><?php _e(‘Categories:’); ?>
      <?php wp_list_cats(); ?>

    <li id=”search”>
    <label for=”s”><?php _e(‘Search:’); ?></label>
    <form id=”searchform” method=”get” action=”<?php echo $PHP_SELF; ?>”>
    <input type=”text” name=”s” id=”s” size=”15″ />
    <input type=”submit” name=”submit” value=”<?php _e(‘Search’); ?>” />

    <li id=”archives”><?php _e(‘Archives:’); ?>

      <?php wp_get_archives(‘type=monthly’); ?>

    <li id=”calendar”>
    <?php get_calendar(); ?>

    <li id=”other”><?php _e(‘Other:’); ?>

    <li id=”meta”><?php _e(‘Meta:’); ?>

    <p class=”credit”><!–<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. –> <cite><?php echo sprintf(__(“Powered by WordPress“), __(“Powered by WordPress, state-of-the-art semantic personal publishing platform”)); ?></cite>
    I haven’t changed anything in it.

    I have a index.php file though. It’s in my FTP I don’t know why it’s not working.. I haven’t changed anything in it, but I don’t know how to post a code on here to show it to you.

    Mark (podz)


    Support Maven

    That index file is not the one being used at the link above.
    There is no menu in the linked one….

    ^ Sorry about that…that’s my code in my index.php file.

    Mark (podz)


    Support Maven

    It isn’t……… we need the code for the page you have a problem with, and if that page is wp.php, post that.
    In the code above, you have thw wp version stuff, so I should see the wp version..
    <meta name="generator" content="WordPress " /> <!-- leave this for stats -->
    I don’t.

    Mark (podz)


    Support Maven

    Right…. works.
    Your comments also work – there’s a guy from Texas already posted.
    Edit index.php

    <?php //comments_popup_script(); // off by default ?>

    Make that line line this:

    <?phpcomments_popup_script(); // off by default ?>

    Popups will then work.
    And go here:

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Comments not working.’ is closed to new replies.