[SOLVED] archives in footer..
i had a footer with 3 blocks but on the top in the footer,centered, I shall like seeing appearing the list of my archives.
Normaly the calling is : <?php wp_get_archives('type=monthly'); ?> Any idea of the right code and where i should put it ? :) Regards daniel farioli |
Add a widget area to the footer, get the 'exec 'php'' plugin, add a text widget with that code in it.
|
Ill try with the footer wiget in Widget but it doesnt work.. do I had to put in it :
<?php wp_get_archives('type=monthly'); ?> :confused: |
Sorry buy I don't understand your post. Did it work?
If the link at the bottom is your site, it looks like the archive is there. Is there still an issue? |
Yes it works but i would like to have the titels of the post and not the date.. an idea...
|
What are you using in the widget?
|
No, I didn't use a widget.
I 've put this code in ata's "style and edit footer" : <ul><li><h2>A random selection of my writing</h2> <ul> <?php $rand_posts = get_posts('numberposts=5&orderby=rand'); foreach( $rand_posts as $post ) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul> </li></ul> and it works fine.... thanks Juggledad... |
in fact to make it good infrench i did that :
ul><h2>Entrées récentes</h2> <ul><?php $rand_posts = get_posts('numberposts=5&orderby=rand'); foreach( $rand_posts as $post ) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php endforeach; ?> </ul><br> <br/> You think to something better ? It looks fine, no ? regards, daniel |
If you are happy, that's all that matters :)
|
thanks ! :)
|
All times are GMT -6. The time now is 05:11 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.