WordPress.org

Ready to get started?Download WordPress

Forums

Category Icons Lite
[resolved] Display random category icons on index.php / home page (2 posts)

  1. cip6791
    Member
    Posted 1 year ago #

    I would like to have random category icons. Children of 406 category. I tried the below code but it s not working.

    <?php echo get_cat_icon_lite('child_of=406&orderby=rand'); ?>

    If I do this it works:

    <?php echo get_cat_icon_lite(406); ?>

    Any ideas on how to make this work?

    http://wordpress.org/extend/plugins/category-icons-lite/

  2. submarine
    Member
    Plugin Author

    Posted 1 year ago #

    <?php

    echo get_cat_icon_lite(rand(1, 406));

    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic