WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Category Archive
404 Since WP 3.4 Update (6 posts)

  1. Wilds
    Member
    Posted 2 years ago #

    I've been getting 404 errors since updating to WordPress 3.4

    I believe that here were multiple changes to how permalink rewrites are done in 3.4, so that's probably the culprit.

    http://wordpress.org/extend/plugins/wp-category-archive/

  2. section13
    Member
    Posted 2 years ago #

    I'm encountering the same issue. Boss is pissed.

  3. Alex
    Member
    Posted 2 years ago #

    Me too....

  4. Alex
    Member
    Posted 2 years ago #

    fixed by adding this to functions.php

    just change "CUSTOM POST TYPE HERE" with your post type. example: post, events, or gallery

    function my_query_for_homepage( $query ) {
    if( $query->is_main_query() && $query->is_home() ) {
    $query->set( 'post_type', array( 'CUSTOM POST TYPE HERE' ) );
    }
    }
    add_action( 'pre_get_posts', 'my_query_for_homepage' );

  5. rahul247rocks
    Member
    Posted 2 years ago #

    Hi, Same here for the category pages I am getting error. I shifted from Blogger to WordPress and did 301 redirect for the posts and all but now the category pages are giving 404. So in custom post type what exactly I should put for my categories to work. I am not so good in coding so can you please help. Here is my Blog at: http://www.thenewipadblog.net

    Just go to the URL and click on any category link you will understand.

  6. dgrant@creativetechs.biz
    Member
    Posted 2 years ago #

    Can someone please help.
    I've tried the above solution and it will not work for me.

    within my functions.php file:
    function my_query_for_homepage( $query ) {
    if( $query->is_main_query() && $query->is_home() ) {
    $query->set( 'post_type', array( 'CUSTOM POST TYPE HERE' ) );
    }
    }
    add_action( 'pre_get_posts', 'my_query_for_homepage' );

    I've also tried items from this page:
    http://wordpress.org/support/topic/after-wp-34-upgrade-the-pagination-setup-not-working-anymore

    The moment a browser tried to go to the second page, I get a 404 error.

    http://orthoworxindiana.com/enewsletter-articles/2011/10/

    Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.