Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] archives in footer.. (http://forum.bytesforall.com/showthread.php?t=10596)

catastrophy Oct 23, 2010 08:02 AM

[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

juggledad Oct 23, 2010 08:16 PM

Add a widget area to the footer, get the 'exec 'php'' plugin, add a text widget with that code in it.

catastrophy Oct 25, 2010 02:46 AM

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:

juggledad Oct 25, 2010 04:38 AM

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?

catastrophy Oct 26, 2010 08:57 AM

Yes it works but i would like to have the titels of the post and not the date.. an idea...

juggledad Oct 27, 2010 04:50 AM

What are you using in the widget?

catastrophy Oct 27, 2010 07:20 AM

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...

catastrophy Oct 27, 2010 07:41 AM

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

juggledad Oct 27, 2010 07:58 AM

If you are happy, that's all that matters :)

catastrophy Oct 27, 2010 08:16 AM

thanks ! :)


All times are GMT -6. The time now is 11:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.