Forums

2.6.2 Self hosted categories do not work

  1. Let me start by saying that 2.6.2 is a huge improvement over the previous 2 versions. Thanks!

    With that said categories are not working with my self hosted blog that is running 3.0.1. Regardless of which category I select it always goes back to the default category for the site. In my case this is Web Site News. I have tried changing it a few times via the iPhone app but it always selects the default.

    The site in question is http://www.danmasters.net.

    P.S. I did verify that categories work properly with my wordpress.com blog so this looks like it is isolated to self hosted sites.

    P.S.S This is on an iPhone 4 with 4.1.

  2. I am having the exact same problem except that the category it defaults to is not the default category that is set in WordPress but the most recent category edited.

  3. :( Still not fixed on this latest 2.6.3 update

  4. Do you have any plugins installed related to categories?

  5. I am assuming you mean active plugins related to categories. Here are the plugins I have active, that are associated with categories:

  6. Also, in my functions.php file I have a bit of code that hides certain categories (that I am using to style posts) from displaying on the page:

    //2010-12-10
    //Exclude categories I am using to define styles
    //Found at http://wordpress.org/support/topic/the_category-exclude-categories
    
    // Exclude selective categories from the_category - GLOBAL SETTINGS
    function the_category_filter($thelist,$separator=' ') {
        if(!defined('WP_ADMIN')) {
            //list the category names to exclude
            $exclude = array('Untitled','Titled');
            if(is_category('2')) {
            array_push($exclude,'cat-slug3','cat-slug4'); }
            if(is_category('3')) {
            array_push($exclude,'cat-slug5'); }
            $cats = explode($separator,$thelist);
            $newlist = array();
            foreach($cats as $cat) {
                $catname = trim(strip_tags($cat));
                if(!in_array($catname,$exclude))
                    $newlist[] = $cat;
            }
            return implode($separator,$newlist);
        } else
            return $thelist;
    }
    add_filter('the_category','the_category_filter',10,2);
    
    //END category exclusion function

Topic Closed

This topic has been closed to new replies.


About this Topic