All pastes #2046039 Raw Edit

Something

public text v1 · immutable
#2046039 ·published 2011-04-13 15:27 UTC
rendered paste body
$args2 = array   (
 'hide_empty'    => 0
);
$cats2 = get_categories( $args2 );
echo "<pre>";
 print_r( $cats2);
echo"</pre>";


Array
(
    [0] => stdClass Object
        (
            [term_id] => 913
            [name] => Calgary
            [slug] => calgary
            [term_group] => 0
            [term_taxonomy_id] => 913
            [taxonomy] => category
            [description] => 
            [parent] => 0
            [count] => 0
            [cat_ID] => 913
            [category_count] => 0
            [category_description] => 
            [cat_name] => Calgary
            [category_nicename] => calgary
            [category_parent] => 0
        )

    [1] => stdClass Object
        (
            [term_id] => 919
            [name] => Condo
            [slug] => condo
            [term_group] => 0
            [term_taxonomy_id] => 919
            [taxonomy] => category
            [description] => 
            [parent] => 918
            [count] => 0
            [cat_ID] => 919
            [category_count] => 0
            [category_description] => 
            [cat_name] => Condo
            [category_nicename] => condo
            [category_parent] => 918
        )

    [2] => stdClass Object
        (
            [term_id] => 918
            [name] => Northeast
            [slug] => northeast
            [term_group] => 0
            [term_taxonomy_id] => 918
            [taxonomy] => category
            [description] => 
            [parent] => 913
            [count] => 0
            [cat_ID] => 918
            [category_count] => 0
            [category_description] => 
            [cat_name] => Northeast
            [category_nicename] => northeast
            [category_parent] => 913
        )

    [3] => stdClass Object
        (
            [term_id] => 916
            [name] => Northwest
            [slug] => northwest
            [term_group] => 0
            [term_taxonomy_id] => 916
            [taxonomy] => category
            [description] => 
            [parent] => 913
            [count] => 0
            [cat_ID] => 916
            [category_count] => 0
            [category_description] => 
            [cat_name] => Northwest
            [category_nicename] => northwest
            [category_parent] => 913
        )

    [4] => stdClass Object
        (
            [term_id] => 922
            [name] => Northwest
            [slug] => northwest-calgary
            [term_group] => 0
            [term_taxonomy_id] => 922
            [taxonomy] => category
            [description] => 
            [parent] => 913
            [count] => 0
            [cat_ID] => 922
            [category_count] => 0
            [category_description] => 
            [cat_name] => Northwest
            [category_nicename] => northwest-calgary
            [category_parent] => 913
        )

    [5] => stdClass Object
        (
            [term_id] => 915
            [name] => Single Family
            [slug] => single-family
            [term_group] => 0
            [term_taxonomy_id] => 915
            [taxonomy] => category
            [description] => 
            [parent] => 914
            [count] => 0
            [cat_ID] => 915
            [category_count] => 0
            [category_description] => 
            [cat_name] => Single Family
            [category_nicename] => single-family
            [category_parent] => 914
        )

    [6] => stdClass Object
        (
            [term_id] => 917
            [name] => Single Family
            [slug] => single-family-northwest
            [term_group] => 0
            [term_taxonomy_id] => 917
            [taxonomy] => category
            [description] => 
            [parent] => 916
            [count] => 0
            [cat_ID] => 917
            [category_count] => 0
            [category_description] => 
            [cat_name] => Single Family
            [category_nicename] => single-family-northwest
            [category_parent] => 916
        )

    [7] => stdClass Object
        (
            [term_id] => 921
            [name] => Single Family
            [slug] => single-family-southeast-calgary
            [term_group] => 0
            [term_taxonomy_id] => 921
            [taxonomy] => category
            [description] => 
            [parent] => 920
            [count] => 0
            [cat_ID] => 921
            [category_count] => 0
            [category_description] => 
            [cat_name] => Single Family
            [category_nicename] => single-family-southeast-calgary
            [category_parent] => 920
        )

    [8] => stdClass Object
        (
            [term_id] => 923
            [name] => Single Family
            [slug] => single-family-northwest-calgary
            [term_group] => 0
            [term_taxonomy_id] => 923
            [taxonomy] => category
            [description] => 
            [parent] => 922
            [count] => 0
            [cat_ID] => 923
            [category_count] => 0
            [category_description] => 
            [cat_name] => Single Family
            [category_nicename] => single-family-northwest-calgary
            [category_parent] => 922
        )

    [9] => stdClass Object
        (
            [term_id] => 914
            [name] => Southeast
            [slug] => southeast
            [term_group] => 0
            [term_taxonomy_id] => 914
            [taxonomy] => category
            [description] => 
            [parent] => 913
            [count] => 0
            [cat_ID] => 914
            [category_count] => 0
            [category_description] => 
            [cat_name] => Southeast
            [category_nicename] => southeast
            [category_parent] => 913
        )

    [10] => stdClass Object
        (
            [term_id] => 920
            [name] => Southeast
            [slug] => southeast-calgary
            [term_group] => 0
            [term_taxonomy_id] => 920
            [taxonomy] => category
            [description] => 
            [parent] => 913
            [count] => 0
            [cat_ID] => 920
            [category_count] => 0
            [category_description] => 
            [cat_name] => Southeast
            [category_nicename] => southeast-calgary
            [category_parent] => 913
        )

    [11] => stdClass Object
        (
            [term_id] => 1
            [name] => Uncategorized
            [slug] => uncategorized
            [term_group] => 0
            [term_taxonomy_id] => 1
            [taxonomy] => category
            [description] => 
            [parent] => 0
            [count] => 1
            [cat_ID] => 1
            [category_count] => 1
            [category_description] => 
            [cat_name] => Uncategorized
            [category_nicename] => uncategorized
            [category_parent] => 0
        )

)