Forums

Is there a way to use a tag to call the cloud instead of using it as a widget? (4 posts)

  1. omgitztrey
    Member
    Posted 1 year ago #

    I like the use of Widgets and all... but with my particular theme all the dynamic widgets are shown at the top of the page and I would like to relocate the tag somewhere else. Any thoughts?

  2. MichaelH
    moderator
    Posted 1 year ago #

    The Template Tag, wp_tag_cloud(), is what is used to display the tag cloud.

  3. reneade
    Member
    Posted 1 year ago #

    To display the SensitiveTagCloud you have to call stc_widget(...). The first and only Parameter of this Function is an array with before_widget, before_title, ... You can find the list in the wordpress file wp-includes/widgets.php

    Here is an Example how to call stc_widget(...):
    <?php
    $args = array(
    'name' => 'Sidebar 123',
    'id' => 'sidebar-123',
    'before_widget' => '

  4. ',
    'after_widget' => "
  5. \n",
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => "</h2>\n",
    );
    stc_widget( $args );
    ?>

    German Explanation: Answer to a comment by Tobias, 3. Dec

    To configure the sensitive-tag-cloud you have to do it the common way via the widget-menu in the adminpanel. After configuration you can remove the widget from your sidebar without loosing the configuration.

  • reneade
    Member
    Posted 1 year ago #

    Sorry, the example contained html-tags. They have been removed by this board. In before_widget and after_widget you have to open and close the li-tag. You can find the correct example code also on the Page linked above.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags