storyboutagirl
Member
Posted 3 years ago #
I'm using a theme that is not widget ready. I may eventually try and do it but in the mean time I was wondering how do I get meta and a calendar to show up in my sidebar? And how do I get it so that it shows the tags associated with my post? For instance.
Posted by Author on September 14, 2008
Posted under: work, themes, design
Or something like that
Posted by author you would need this code:
<?php the_author(); ?>
The tags you would need this code:
<?php the_tags(); ?>
To get the meta data on their just copy them from the default themes sidebar. You should see them towards the bottom of the sidebar.php file.
storyboutagirl
Member
Posted 3 years ago #
I want to do the same thing with the tags but it doesn't want to work... Does someone have any tips?
Here is my piece of code:
<?php
$recent = new WP_Query('showposts=1');
while($recent->have_posts()) {
$recent->the_post();
the_category();
the_tags('', ', ', '');
}
$all_tags = wp_tag_cloud('smallest=11&largest=21&unit=px&number=20&format=array');
?>
Thanks :)