Getting all the categories to appear in the footer

  • CTK
    CTK
    Newbie 26 points
    August 27, 2013 at 3:50 am

    I’m trying to get the categories to appear in teh footer using get_categories. All I’m seeing is ‘array’ – can someone tell me what I’m doing wrong?

    ***

    function ctkcategories() {
    $categories = get_categories();
    echo $categories;

    }

    add_action(‘premiumpress_footer_inside’,’ctkcategories’);

    ?>

  • Mark Fail
    Mark Fail
    Super Guru 13,013 points
    August 27, 2013 at 5:50 am

    $categories; is an array, you cannot echo an array.

    try: print_r($categories);

Viewing 2 posts - 1 through 2 (of 2 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes