I’m trying to show the archive list like that
<ul>
<li>Year</li>
<li>Month</li>
<li>Month</li>
<li>Month</li>
<li>Year</li>
<li>Month</li>
</ul>
and so on, with the relative link only on the month. I tried different solutions as the CG Archive plugin ( http://wordpress.pastebin.ca/209160 ) and that’s the only kind of plugin I can use since I need to place the php output wherever I want and the other plugins/widgets I found doesn’t let me do that. The problem is that it doesn’t show anything at all! Do you know any alternative solutions to accomplis that? Really thanks in advance and sorry for my poor english.
Place this in your functions.php file or create a simple plugin…
“just the year’s text” version:
Now you can use
wp_custom_archive
function wherever in your theme: