Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] archives in footer..


  #1  
Old Oct 23, 2010, 09:02 AM
catastrophy
 
52 posts · Jan 2010
Nice France
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
__________________
http://farioli.fr/mondes

Last edited by catastrophy; Oct 23, 2010 at 09:06 AM.
  #2  
Old Oct 23, 2010, 09:16 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Add a widget area to the footer, get the 'exec 'php'' plugin, add a text widget with that code in it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 25, 2010, 03:46 AM
catastrophy
 
52 posts · Jan 2010
Nice France
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'); ?>

__________________
http://farioli.fr/mondes
  #4  
Old Oct 25, 2010, 05:38 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 26, 2010, 09:57 AM
catastrophy
 
52 posts · Jan 2010
Nice France
Yes it works but i would like to have the titels of the post and not the date.. an idea...
__________________
http://farioli.fr/mondes
  #6  
Old Oct 27, 2010, 05:50 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What are you using in the widget?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Oct 27, 2010, 08:20 AM
catastrophy
 
52 posts · Jan 2010
Nice France
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...
__________________
http://farioli.fr/mondes
  #8  
Old Oct 27, 2010, 08:41 AM
catastrophy
 
52 posts · Jan 2010
Nice France
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
__________________
http://farioli.fr/mondes
  #9  
Old Oct 27, 2010, 08:58 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you are happy, that's all that matters
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Oct 27, 2010, 09:16 AM
catastrophy
 
52 posts · Jan 2010
Nice France
thanks !
__________________
http://farioli.fr/mondes

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Where is the Archives.php? genuwine4532 Atahualpa 3 Wordpress theme 11 Feb 1, 2011 10:37 PM
Archives by tag? ComicsBronzeAge Atahualpa 3 Wordpress theme 0 Aug 25, 2010 09:29 AM
[SOLVED] Archives Page Footer KatyDigg Post-Kicker, -Byline & -Footer 13 Aug 8, 2009 10:39 AM
Archives wiget, thndrwhls Sidebars & Widgets 1 Apr 2, 2009 06:23 AM


All times are GMT -6. The time now is 12:12 PM.


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