Question: I can't understand how can I display all tags in my homepage? 

There's a workable solution to display a product's tags in a product page with this code: 

```
<?php
// instantiate the tags class for products
$_tags = new Mage_Tag_Block_Product_List();
?>

<!-- ProductTags: -->
<ul class="product-tags">
<?php foreach($_tags->getTags() as $tag):?>
    <li><a href="<?=$tag->getTaggedProductsUrl()?>"><?=$tag->getName()?></a></li>
<?php endforeach;?>
</ul>

```

But it doesn't work in home page. 

I get error

> 
> Fatal error: Call to a member function `getItems()` on a non-object in app/code/core/Mage/Tag/Block/Product/List.php on line 45
> 
> 
> 

What should I do?

Answer: 
Add this to the Content section of your hopepage:

```
{{block type="tag/all" name="tags_all" template="tag/popular.phtml"}}

```
updated

```
$tag_model= Mage::getModel('tag/tag');
          $tag_collection= $tag_model->getResourceCollection()
                    ->addPopularity()
                    ->addStatusFilter($model->getApprovedStatus())
                    ->addProductFilter($ProductId)
                    ->setFlag('relation', true)
                    ->addStoreFilter(Mage::app()->getStore()->getId())
                    ->setActiveFilter()
                    ->load();

    $mytags=$tag_collection->getItems();

       foreach ($mytags as $tag) {
               echo  $tag->getTaggedProductsUrl();
               echo $tag->getName();

                      }

```