Propaganda Party: The Pop Stalin Design Manifesto

 

One Measly Opinion

  1. Dave Bowker | May 24

    Nice. I’ve actually been doing this at the moment, but I’ve also been showing different categories to different pages. It can be quite time consuming to write in if there are alot of categories, but I guess if that’s what the client wants then that’s what the client wants.

    Here’s my code for example…


    Cat 1&orderby=id&use_desc_for_title=0&child_of=5');
    wp_list_categories('title_li=Cat 2&orderby=id&use_desc_for_title=0&child_of=9');
    wp_list_categories('title_li=Cat 3&orderby=id&&use_desc_for_title=0&child_of=13');
    } elseif (is_page()) { // if they are pages
    if (is_page('products')) { // which page they are, example products page
    wp_list_categories('title_li=Cat 1&orderby=id&use_desc_for_title=0&child_of=5');
    wp_list_categories('title_li=Cat 2&orderby=id&use_desc_for_title=0&child_of=9');
    wp_list_categories('title_li=Cat 3&orderby=id&use_desc_for_title=0&child_of=13');
    } elseif (is_page('about-us')) { // page is about-us
    echo "Show anything you like here";
    } else { // catches other 'pages' pages
    sideblog('title=true&permalinks=true&limit=2');
    }
    } else { // catches for all other pages
    sideblog('title=true&permalinks=true&limit=2');
    }
    ?>