WordPress.org

Support

Support » How-To and Troubleshooting » index page isn’t index.php but news.php

index page isn’t index.php but news.php

  • Hello here 🙂
    I have news.php with this code:
    <?php /* Don't remove this line, it calls the WP function files ! */
    $blog=1;
    $cat= 3;
    require_once("../.././wordpress2/wp-blog-header.php");
    ?>
    <!-- // loop start -->
    <?php foreach ($posts as $post) { start_wp(); ?>

    <div class="news">
    <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>

    <?php the_content(); ?>
    <?php the_time("d/m/y"); ?>
    </div>

    <!-- // this is just the end of the motor - don't touch that line either :) -->
    <?php } ?>

    Now, I’ve just added the code for the archives

      <?php wp_get_archives('type=monthly'); ?>

    but there’s a problem: the PHP code for the archive generates links as:
    http://www.domain.it/news.php/index.php?m=200406

    and obviously it doesn’ work correctly.

    (In the general options I’ve “http://www.dominio.it/news.php” as the blog URI.)

    What should I do?
    thanx.

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘index page isn’t index.php but news.php’ is closed to new replies.