WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Categories Not Working (15 posts)

  1. Tom Lany
    Member
    Posted 2 years ago #

    Hi,

    Category pages are currently not working on my blog. When trying to view a category page, such as this one: http://tomlany.net/category/photos/, I either get a 404 error or am redirected to a page or post with a similar name to the category.

    I am using permalinks (with mod_rewrite installed on my server). When I turn permalinks off, the category's entries are again visible. The category pages in the WordPress admin are also currently working properly. Strangely, categories have worked previously with my blog, and permalinks for entries work just fine.

    I have tried recreating my htaccess file, reinstalling WordPress, optimizing/repairing my database, turning off all plugins, and switching to the default Twentyeleven theme, none of which helped.

    I have not made any major changes to my blog recently (functions, themes, plugins, etc.), although I'm not sure if I checked to make sure categories were working after I upgraded to WordPress 3.3.

    Do you have any thoughts for how I can get categories working again on my blog? Thanks!

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    This works,

    http://tomlany.net/2011/01/working-on-tomlany-net/ <=== using diff permalink structure than currently in .htaccess?

    try updating your permalink structure after ensuring WordPress write access to .htaccess 'file' by using chmod (or host tools) to make it 755.

  3. Tom Lany
    Member
    Posted 2 years ago #

    Thanks for the comment. I have already tried updating my htaccess file with the current permalink structure. Like you mentioned, stories are working properly. The problem is only with category pages. Does anyone have any other ideas?

  4. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    http://tomlany.net/2011/07/

    and

    http://tomlany.net/2011/02/

    work fine...it's permalink structure..

  5. Tom Lany
    Member
    Posted 2 years ago #

    The problem is with categories, not other kinds of archives. Try these, which are not working.

    http://tomlany.net/category/photos/
    http://tomlany.net/category/commentary/

    Thanks for your help.

  6. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    I realize they are not - do this:

    Admin dashboard>Posts>Categories>Hover over category name in list and review the cat id #...post links here to cat id.

    The link will be http://tomlany.net/?cat=# <===replace # with cat id.

  7. Tom Lany
    Member
    Posted 2 years ago #

    That does not work with my permalink structure. When I tried turning all of the permalinks off for the site, that method did work, but I want to use the site with permalinks.

    If I type http://tomlany.net/?cat=19, for instance, I am immediately forwarded to http://tomlany.net/category/photos/, where I receive a 404 error. Any ideas on how I can fix the permalinks?

  8. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    can you post your .htaccess file on Pastebin?

  9. Tom Lany
    Member
    Posted 2 years ago #

    Yes. See: http://pastebin.com/QbB2mVW9. Right now I don't have anything in there except for what WordPress supplied.

  10. shenry
    Member
    Posted 2 years ago #

    Everything else is working great, but I'm having trouble with getting categories to show up too. I've tried several of the examples given.
    In subject line of my email, I tried:
    East City:
    also
    :East City
    East City showed up as the title of the post, but I also wanted it to be in the category named East City. The post showed up as "uncategorized"
    I also tried, in the body of email
    Subject:East City
    and
    Subject:[East City]
    and
    Subject: -East City--Maps- My Subject
    But all of these have not put the post in a category, still stays as uncategorized.
    And help you can provide would be appreciated. Thanks.

  11. Tom Lany
    Member
    Posted 2 years ago #

    Are you posting via E-mail? If so, are you using the built-in tool, or a plugin? If you are using the built-in functionality, I believe all posts will receive the default category you have selected. See: http://codex.wordpress.org/Post_to_your_blog_using_email. You may want to start a new thread for this issue, as it is very different than mine.

    Does anyone have any ideas on my .htaccess file?

  12. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    You have posted the .htaccess file as posted at here. Since each host tends to require some minor functional difference to each .htaccess file, I am fairly sure that your host's documentation has not been reviewed and implemented fully...I suggest that mod_rewrite.c is not being implemented or used properly.

  13. mgnelu
    Member
    Posted 2 years ago #

    I had a similar problem with my categories. After searching the support forum and finding this topic, I solved it by following SwansonPhotos' original advice:

    1. I changed the properties of the .htaccess file to 755
    2. I changed the permalink structure to default, then back to the permalink structure I wanted to use
    3. I changed the properties of the .htaccess file back to 644

    After each step I checked the behavior of the blog to make sure everything works fine. This is the content of my .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  14. mgnelu
    Member
    Posted 2 years ago #

    I forgot to say thanks, SwansonPhotos!

  15. Tom Lany
    Member
    Posted 2 years ago #

    Categories are now working again on my site. A theme update seemed to fix things. This is strange, as I tried the Twenty Eleven theme with no modifications and still had problems before, but I am glad everything is working again. Thanks to everyone for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic