Forums

[resolved] All categories showing same posts (6 posts)

  1. richarduk
    Member
    Posted 1 year ago #

    Help! :-)

    All my child categories are showing the same posts, even though each post is in only one child category.

    The ending of the url looks like this:

    category/whatever/customers/

    or this

    category/whatever/support/

    but each category is just showing identical posts.

    Any ideas, in any way?

  2. moshu
    Member
    Posted 1 year ago #

    Not really, unless you paste your category.php (or whichever template is used to display your categories) to
    http://wordpress.pastebin.ca

  3. richarduk
    Member
    Posted 1 year ago #

    Thanks Moshu

    That was easy

    The url is: http://wordpress.pastebin.ca/931080

  4. moshu
    Member
    Posted 1 year ago #

    So, what file is this? Does it live outside of WP? (or why does it have the header included?)

  5. richarduk
    Member
    Posted 1 year ago #

    Oops.

    This is category.php, my own theme.

    I've also just woken up to the fact that my problem is because I've created a protected directory in which to do development, so this is an htaccess problem, though I've been searching for a few hours how to figure it all out.

    The current htacces looks like this:

    AuthType Basic
    AuthName "blah"
    AuthUserFile "/home/something/.htpasswds/public_html/blah/passwd"
    require valid-user

    I've added all sorts of stuff in front of it, to no avail e.g.

    RewriteEngine On
    
    RewriteBase /
    
    RewriteCond %{REQUEST_URI} ^/secure/(.*)$
    
    RewriteRule ^.*$ - [L]
    
       <IfModule mod_rewrite.c>
          RewriteEngine On
          RewriteBase /
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule . /index.php [L]
          </IfModule>

    I'm going round in circles now :-)

  6. richarduk
    Member
    Posted 1 year ago #

    The solution is here

    http://wordpress.org/support/topic/160793?replies=5#post-705953

    and is nothing to do with the protected directory, and everything to do with query_posts

    Thanks to Otto!

Topic Closed

This topic has been closed to new replies.

About this Topic