• Resolved jerocarson

    (@jerocarson)


    Hi Eveyone,

    before i installed my category order, the excluder option on my theme was working. so in other to make my category order work, i had to remove some piece of code on my header.php

    when it was working it was like this

    <?php
    $z = count($wpzoom_exclude_cats_menu);
    if ($z > 0)
    {
    $x = 0;
    $que = “”;
    while ($x < $z)
    {
    $que .= $wpzoom_exclude_cats_menu[$x];
    $x++;
    if ($x < $z) {$que .= “,”;}
    }
    }
    else
    {
    $que = “”;
    }
    $menu = preg_replace(‘@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i’, ‘<li$1><a$2>$3’, wp_list_categories(“echo=0&exclude=$que&title_li=”));
    echo”$menu”;?>

    In order to make my category order plugin work at that time of need, i had to use this code . .

    <?php
    wp_list_categories(‘orderby=order&title_li=’);
    echo”$menu”;?>

    Now i tried to exclude a category, cos my theme has the option, it did not work, tried 2 pulgins, but they dont work also.
    http://www.africangamer.com
    Thx

Viewing 5 replies - 1 through 5 (of 5 total)
  • have you tried to add the ‘orderby’ parameter into this line of code:

    '<li$1><a$2>$3', wp_list_categories("echo=0&exclude=$que&title_li="));

    so you would get:

    '<li$1><a$2>$3', wp_list_categories("echo=0&orderby=order&exclude=$que&title_li="));
    Thread Starter jerocarson

    (@jerocarson)

    Oh, Thanks so much, it worked like magic. . ve actually been on this for close to a week. this was my first post, never knew there was a tab to insert code before posting. Thanks again!

    Thread Starter jerocarson

    (@jerocarson)

    pls wait, it works on my localhost, but when i loged in to try, it failed again . . so sad!

    Thread Starter jerocarson

    (@jerocarson)

    thx, i have got it running, it was an error on my part. edited it on another theme . .. thx again

    Thread Starter jerocarson

    (@jerocarson)

    thx

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Category Excluder Option Won't Work’ is closed to new replies.