Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35403
    Profile photo of mp
    mp
    Participant

    Hi Guys.

    I would love to have tag cloud on my website, that’s why I’m trying to add new function based on regular WooCommerce data:

    function symbio_stock() {
    if (function_exists(‘wp_tag_cloud’))
    return wp_tag_cloud(array(
    ‘smallest’ => 9,
    ‘largest’ => 20,
    ‘unit’ => ‘pt’,
    ‘number’ => 10,
    ‘format’ => ‘list’,
    ‘separator’ => “\n”,
    ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’,
    ‘link’ => ‘view’,
    ‘taxonomy’ => ”,
    ‘show_count’ => 0,
    ));
    }
    add_shortcode(‘popular_tags’, ‘symbio_stock’);

    Of course it’ll not work, because as I understand wp_tag_cloud() will not work in Symbiostock case.

    Any suggestions how to change the code to make product cloud shortcode?

    #35404
    Profile photo of mp
    mp
    Participant

    ok, topic closed by myself 🙂

    Elementor did the trick

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.