• Hi

    i upgrade 2.1 version evry thing seem fine

    but in my side bar now it show child category also

    my current code for category :

    <li><h2>Categories</h2>
    <ul> <?php
    wp_list_cats('children=0&feed=RSS&feed_image=/wblog/wp-content/themes/default/rss.png');
    ?>
    </ul>
    </li>

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    wp_list_cats is now deprecated. You should switch it to use the new wp_list_categories instead. wp_list_cats still works, but is incomplete. It won’t convert all parameters because it’s not an exact match anymore.

    Thread Starter xinfo

    (@xinfo)

    can you guy’s help me to get right code to show only parent category i want to hide child category .

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    xinfo: There is no way to do what you’re asking currently. Wait for the next version.

    Thread Starter xinfo

    (@xinfo)

    Ohh any plugin will help me ?
    Btw no of database execute has decreased seem my admin and blog

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    The whole categories/links system has changed, so it’s doubtful that any existing plugins will work for this. Best I can recommend is to wait for somebody to either fix it in the next version or until somebody comes up with a plugin for it. I looked at the code myself, but the whole thing is kinda new and a bit confusing to me currently.

    Patience is the best I can suggest.

    Thread Starter xinfo

    (@xinfo)

    Otto thank you for clear replay . Well hope get fixed soon

    I had the same trouble and wanted to get rid of child categories. Though it’s far less convenient now, it’s doable. Use the “exclude” tag within wp_list_categories.

    Thread Starter xinfo

    (@xinfo)

    well i added this in my css

    .children { display: none; }

    it’s working , no more child category is disply but it’s a not the right way to do this ..

    In addition to exclude children, there also needs to an option to exclude posts in categories, and exclude links in categories.

    Thread Starter xinfo

    (@xinfo)

    Well i like current feature which show child cat post when parent cat have very less post that feel’s my user busy category every one have own option.

    xinfo, thanks for the solution to hide children categories! It would be nicier if the original function still worked, tough…

    Thread Starter xinfo

    (@xinfo)

    Glad it worked out for you ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Every thing fine but category display problem after upgrade’ is closed to new replies.