Okay so i’ve got tagcloud plugin working fine when listing all the tags from the ‘blog’ folder/page on my blogarticle.php template (the page for the single post).
In the content folder. There is a blog folder and inside the blog folder there are individual posts folders which have the blogarticle.txt in them. The blogarticle.txt files have tags field with tags listed in them.
The code below works fine to list all the tags from all the posts. I’m calling it on the single blog post page… ‘blogarticle.php’ template
<div id="Tcomments" class="tab-pane"> <?php $tagcloud2 = tagcloud(page('blog'), array('limit' => 20)) ?> <div class="tag-cloud"> <?php foreach($tagcloud2 as $tag): ?> <a href="<?php echo $tag->url() ?>"><?php echo $tag->name() ?></a> <?php endforeach ?> </div> </div>
My assumption would be that i’d just need to change page(‘blog’) to $page to get the tags for the individual post that i’m displaying or even do something like page(‘blog’)->children()->visible->nth(?) or something but i haven’t been able to get any values no matter what i try. What am i missing? My path to the individual post .txt must be wrong. Please help.