WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. djtetsu
    Member
    Posted 3 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.

    http://blog.venuegurus.com

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

    http://blog.venuegurus.com/?p=19

    or even:

    http://blog.venuegurus.com/index.php?p=19

    Thanks for your help!

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    does the theme have:

    single.php
    archive.php

    (probably not)
    http://codex.wordpress.org/Template_Hierarchy

    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
    Member
    Posted 3 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.

    http://pastebin.com/XUwAb113

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

    <?php
    /**
    * 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 */
    require('./wp-blog-header.php');
    ?>

  4. alchymyth
    Forum Moderator
    Posted 3 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()) : ?>

    http://codex.wordpress.org/Function_Reference/wp_reset_query

  5. djtetsu
    Member
    Posted 3 years ago #

    You, sir, are a GOD!

    THANKS that worked!

Topic Closed

This topic has been closed to new replies.

About this Topic