Make WordPress Core

Opened 15 years ago

Closed 13 years ago

Last modified 13 years ago

#4610 closed enhancement (worksforme)

Default theme (Kubrick): add the tag cloud for WP 2.3

Reported by: albaran's profile albaran Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3
Component: Template Keywords: tested needs-patch
Focuses: Cc:


Add the tag cloud at the beginning of the sidebar.

Add in sidebar.php:

	<?php wp_tag_cloud(); ?>

Do it, it's magic!

Attachments (2)

sidebar_tag_cloud.patch (434 bytes) - added by albaran 15 years ago.
display tag cloud in the default theme
sidebar_widget_tag_cloud.patch (1.1 KB) - added by albaran 15 years ago.
add tag cloud in widgets

Download all attachments as: .zip

Change History (11)

#1 @Nazgul
15 years ago

  • Milestone set to 2.3 (trunk)
  • Version set to 2.3

#2 @JeremyVisser
15 years ago

  • Component changed from Administration to Template

Not at the beginning. Below the search box, at least.

#3 @albaran
15 years ago

The tag cloud is a search device for posts. Before or after the search box is OK.

Must be available in widgets if not in the first position.

#4 @JeremyVisser
15 years ago

Oh, and if you put it into the static sidebar, you'll want a widget for it as well. The following is in plugin form, but I'm sure it could be adapted in 60 seconds to be built-in to widgets.php.

        Plugin Name: Tag Cloud
        Plugin Author: Jeremy Visser
        Description: A sidebar widget which displays a tag cloud.

function jv_tag_cloud_widget($args) {

        echo $before_widget;
        echo $before_title . 'Tags' . $after_title;

        echo '<div class="tag-cloud">';
        echo '</div>';

        echo $after_widget;

function jv_tag_cloud_init() {
        register_sidebar_widget('Tag Cloud', 'jv_tag_cloud_widget');

add_action('init', 'jv_tag_cloud_init');


15 years ago

display tag cloud in the default theme

15 years ago

add tag cloud in widgets

#5 @albaran
15 years ago

  • Keywords tested added

tested with WP 2.3-alpha SVN revision number 5803

patchs to display the tag cloud (static mode and as widget).

#6 @foolswisdom
15 years ago

  • Keywords has-patch added
  • Milestone changed from 2.3 to 2.4 (next)

Relates to #4130

#7 @westi
14 years ago

  • Keywords needs-patch added; has-patch removed
  • Milestone changed from 2.5 to 2.6

In order for this to happen I think the tag cloud would need a heading so we need a patch that adds some code to wp_tag_cloud() to optionally generate a heading like the other things in the sidebar do.

Moving to 2.6 for now.

#8 @DD32
13 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

Is this ticket still valid?

The tag cloud widget has been available since 2.3, I don't think the tag cloud really needs to exist in the non-dynamic sidebar, if the user wants to customize it, They can customize it via the widgets area.. Its probably unlikely that anyone would want search, tags, categories, pages, and meta displayed..

On the other hand.. users might want that, Along with the calendar, links, and recent comments.. So IMO, Its a bit of a compromise, Users can customize the themes PHP (Which they will do if technical), Else they'll use the widget manager.

I'm closing as worksforme.. reopen if necessary

#9 @jacobsantos
13 years ago

  • Milestone 2.9 deleted
Note: See TracTickets for help on using tickets.