Inserting permalink into wp_get_archives
-
Hi everyone
I’m trying to display the list of years with a custom background image specific to each year. I need a custom hook in the html for the css to get hold of.
I’ve customised wp_get_archives to strip out the default
<li>
and include a new one by changing the “format” to “custom” and using the before/after to include an<li>
with a class (see below). Does anyone know if I can insert the permalinks (or any other attribute/php for that matter) into my class tag?wp_get_archives(array('format'=>'custom','type'=>'yearly','before'=>'<li class="PERMALINK HERE!">','after'=>'</li> '));
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Inserting permalink into wp_get_archives’ is closed to new replies.