Links to posts, querystring parameters doesn't seem to be working (5 posts)

  1. djtetsu
    Posted 5 years ago #

    Hello, I was taken into doing this site, and not sure what the previous guy did, but most of it I believe was just in the themes.


    My problem is that none of the links do anything other than show them the same page.


    or even:


    Thanks for your help!

  2. Michael
    Forum Moderator
    Posted 5 years ago #

    does the theme have:


    (probably not)

    in which case, index.php would generate all web pages.

    what is the code in index.php?
    please paste the code into a http://pastebin.com/ andpost the link to it here.

  3. djtetsu
    Posted 5 years ago #

    Hello, thanks for trying to help!

    Ok, no single or archive.php under my themes.

    Here is the code for my index in my themes folder.


    The index files under the wp root seems like the standard install:

    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    * @package WordPress

    * Tells WordPress to load the WordPress theme and output it.
    * @var bool
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */

  4. Michael
    Forum Moderator
    Posted 5 years ago #

    the code in the top of the left sidebar seems to cause the problem (the recent posts)

    to compensate for this try to add a wp_reset_query(); before this line in index.php of the theme:

    <?php if (have_posts()) : ?>

    i.e. change this to:

    <?php wp_reset_query(); ?>
    <?php if (have_posts()) : ?>


  5. djtetsu
    Posted 5 years ago #

    You, sir, are a GOD!

    THANKS that worked!

Topic Closed

This topic has been closed to new replies.

About this Topic