سلام
این کد رو جایگزین کد خودتون کنید.
function wpb_tag_cloud() {
$args = array(
'taxonomy' => 'product_tag',
'smallest' => 10,
'largest' => 22,
'unit' => 'px',
'number' => 10,
'separator' => " ",
'orderby' => 'count',
'order' => 'DESC',
'echo' => false
);
$tag_string = wp_tag_cloud($args);
return $tag_string;
}
// Add a shortcode so that we can use it in widgets, posts, and pages
add_shortcode('wpb_popular_tags', 'wpb_tag_cloud');
// Enable shortcode execution i