• Hello!

    I installed WP 3.0 and it worked fine.

    I edited index.php and added the following line, so posts from category 3 would not show on index.php

    <?php query_posts('cat=-3&showposts='.get_option('posts_per_page')); ?>

    The index now displays fine, posts from category 3 do not display, BUT.. links to the post page do not work now.

    Clicking the post headline on the index page will load the new url (which looks like it should work: http://xxxxxxxxxxxxx.com/blog/2010/08/16/), but the content is just the index page again.

    How can I fixed this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Which index.php file did you edit?

    Thread Starter brunning

    (@brunning)

    whatever index.php appears in the WP console editor, I assume it’s the blog’s /index.php

    Thread Starter brunning

    (@brunning)

    ok, update:

    it’s the current theme’s index.php and my code appears as so:

    <?php get_header(); ?>
    
    	<div id="content">
    
    <?php query_posts('cat=-3&showposts='.get_option('posts_per_page')); ?>
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    		<div class="post">
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘modified WP index, now unable to view posts’ is closed to new replies.