Forums

tag cloud not appearing correctly. (4 posts)

  1. thetoolman
    Member
    Posted 3 years ago #

    Hi there,

    I am trying to set up a tag cloud and add it to my index page. I have added a widget in admin, but it is not adding where I place the followinf code:

    <?php wp_tag_cloud('smallest=8&largest=22&number=30&orderby=count'); ?>

    Any ideas?

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Where are you placing that code?

    If you are using the Tag Cloud Widget, the tag cloud would appear in your sidebar.

  3. thetoolman
    Member
    Posted 3 years ago #

    I am placing it in my sidebar now, but all it does is show the title of the widget, im my case "tags" and then shows nothing underneath it. Also, it removes all my other sidebar features such as pages, categories etc.

  4. MichaelH
    Volunteer
    Posted 3 years ago #

    You shouldn't need to put any code in if you are using the Tag Cloud Widget. If you want to put code in a Widget you will want to get Otto's php code widget.

    As for losing features in your sidebar, typically themes are coded so that if widgets are activated, then the rest of the sidebar.php stuff is ignored.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.