• Resolved alauer

    (@alauer)


    Hi
    i tried to echo a list of tags in a certain template part.
    Templatepart: woocommerce/templates/single-product/tabs/additional-information.php

    Code: `<?php
    if(get_the_tag_list()) {
    echo get_the_tag_list(‘<ul><li>’,'</li><li>’,'</li></ul>’);
    }
    ?>
    `

    But there is no output although the products do have tags assigned.
    I can echo “Hello World” or any other textstrings or HTML but when it comes to PHP nothing gets printed.

    What have i done wrong?

    kind regards axel

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Echo a tag-list’ is closed to new replies.