[Plugin: WP Super Cache] Post listing outside of WordPress install not working (1 post)

  1. ajmaxwell
    Posted 3 years ago #

    Hi everyone,

    I recently install WP Super Cache and got it set up and running perfectly, except for 1 part. On the Home Page of my site I have PHP retrieving the 5 latest posts, it works well when Super Cache is off, but when it's on it returns a bunch of random characters and breaks the whole page.

    Home Page code

    query_posts('showposts=5'); ?>
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
    		<?php endwhile; else: echo "No posts... yet"; endif; ?>
    <?php wp_reset_query(); ?>

    I have tried the following lines in "Accepted Filenames & Rejected URIs" (this is based off a post I found after some Googling)


    (I replaced example.com with my domain... obviously)
    Any help would is greatly appreciated.


Topic Closed

This topic has been closed to new replies.

About this Topic