Problem with wordpress categories

Discussion in 'WordPress' started by BrendanGall, Apr 16, 2008.

  1. #1
    I believe when you click on a category it is supposed to show all the posts in that specified category.

    When i click on a category on my website it just returns a 404 error.

    here is the website in question.

    please let me know if you think you could help. it would be greatly appreciated.
     
    BrendanGall, Apr 16, 2008 IP
  2. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    it's a .htaccess problem.
     
    Cheap SEO Services, Apr 16, 2008 IP
  3. BrendanGall

    BrendanGall Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Do you know how it can be fixed by any chance?

    I am not too familiar with htaccess stuff.
     
    BrendanGall, Apr 16, 2008 IP
  4. Steupz

    Steupz Peon

    Messages:
    917
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what does your htaccess say?
    Do you know how to "access" it?

    Copy the code and we'll see what's wrong
     
    Steupz, Apr 16, 2008 IP
  5. BrendanGall

    BrendanGall Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Here is my htaccess file.

    # -FrontPage-
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName vgstash.com
    AuthUserFile /home/vgstash/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/vgstash/public_html/_vti_pvt/service.grp
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    Code (markup):
     
    BrendanGall, Apr 17, 2008 IP
  6. BrendanGall

    BrendanGall Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    still looking for help with this problem if anyone is available. Please. I would really like to get the categories working.
     
    BrendanGall, Apr 21, 2008 IP
  7. Rapidrobert

    Rapidrobert Peon

    Messages:
    160
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi BrendanGall,

    I'll try to help.... In Settings, do you have Permalinks set to "Custom Structure" and did you set a Category Base or Tag Base? Does your host support mod_rewrite?

    Those are a few possible issues off the top of my head. Your theme uses a “More from this category” module. Is it enabled and configured? I'm not familiar with the module, so I can't help much. It sounds like the Mimbo 2.2 author did something special there. You may want to ask him on his site, which noted that the original Mimbo theme required:
    "In the “index.php” and “sidebar.php” templates, you will find a series of query_posts functions which refer to specific category ID numbers from my database. Example:

    <?php query_posts('showposts=1&cat=4'); ?>

    You will need to change them to reflect the ID numbers in your own database. They can be found in your control panel under Manage->Categories. Read more about this process.​
     
    Rapidrobert, Apr 22, 2008 IP
  8. BrendanGall

    BrendanGall Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i do have permalinks set to custom structure and i did se a category base also. Yes my host supposrts mod-Rewrite or the individual pages wouldnt work either correct?

    I changed the query posts on the main page. I will check the sidebar now.
     
    BrendanGall, Apr 24, 2008 IP
  9. BrendanGall

    BrendanGall Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I checked sidebar.php and i didnt see anything really. The problem is with the "browse category section". when clicked i want it to go to the page for that category.

    The only code for the "browse category" section is:
    <?php wp_list_categories('title_li='); ?>
    PHP:
     
    BrendanGall, Apr 24, 2008 IP
  10. Rapidrobert

    Rapidrobert Peon

    Messages:
    160
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I downloaded the theme and found the the authors instructions are accurate, but not clear.

    In sidebar.php and index.php, you should find the query_post commands.

    query_posts('showposts=3&cat=2');

    You edit the cat=2 to cat=3,5, or whatever categories numbers you want to display posts from. Your Category numbers can be found in your control panel under Manage->Categories. Otherwise you'll get 404 errors.
     
    Rapidrobert, Apr 24, 2008 IP
  11. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Did you recently update your wordpress version? If so, please go to the permalinks and again click update/save. A similar issue happened to me as well and that simple thing actually solved it.
     
    godsofchaos, Apr 24, 2008 IP
  12. Rapidrobert

    Rapidrobert Peon

    Messages:
    160
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Hey BrendanGall,
    I also had to update my Wordpress install to 2.5 to get the browse categories function to work too, but you still have to enter the cat numbers, but not in the browse categories section (its counterintuitive).
     
    Rapidrobert, Apr 24, 2008 IP
  13. BrendanGall

    BrendanGall Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Updated permalinks, still doesnt work.

    The section in question does not need me to change category numbers.

    On the right only under the "Browse category" section is a list of categories. I want these categories when clicked to go to a page listing posts in that category. Instead it just returns a 404 error.

    The only code for the browse category section is as follows.
    
    <li><h3>Browse Categories</h3>
    <ul class="subnav">
    <?php wp_list_categories('title_li='); ?>
    </ul>
    </li>
    
    HTML:
    I got the change the category id part. I just want when a category specific url is clicked i want it to show the posts that are in that category.

    http://www.vgstash.com/video-games/cheat-codes/

    For example.That is the category for cheat codes and instead of returning the 2 posts that are in the category it returns a 404.
     
    BrendanGall, Apr 24, 2008 IP
  14. Rapidrobert

    Rapidrobert Peon

    Messages:
    160
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #14
    My site threw 404s on the category subposts until I edited the query_post entries. Did you put the category numbers in the query_posts('showposts=3&cat=XX'); codes? You don't need to edit the "Browse category" code. Like I said, its counterintuitive.
     
    Rapidrobert, Apr 24, 2008 IP