Salut,

J'ai besoin d'un peu d'aide avec quelque chose qui semble être très facile mais je n'arrive pas à la mettre en marche:

ce que je voudrais c'est que dans le sidebar_left à gauche les posts soient affichés selon l'ordre inverse de postage. autrement je trouve que ça fait trop repetitif avec le slider en haut et le contenu du milieu.

sachant qu'on m'a proposé d'essayer le suivant et que ça n'a pas marché:
Code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
<?php $recent = new WP_Query("order=DESC&cat=" .ot_option('hp_side_cat'). "&showposts=" .ot_option('hp_side_num') ); while($recent->have_posts()) : $recent->the_post();?>
 
 
voici le code d'origine pour mon widget sidebar_left.php:
 
Code :
 
<!-- begin r_sidebar -->
 
<div id="sidebar_left">
 
<h4 class="featuredtitle"><?php echo cat_id_to_name(ot_option('hp_side_cat')); ?></h4>
 
<?php $recent = new WP_Query("cat=" .ot_option('hp_side_cat'). "&showposts=" .ot_option('hp_side_num') ); while($recent->have_posts()) : $recent->the_post();?>
 
 
<div class="sidecontent">
 
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-side' ); ?></a>
<h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4>
<?php the_content_limit(50, ""); ?>
<a class="morelink" href="<?php the_permalink() ?>" rel="bookmark"><?php _e("Read More", 'organicthemes'); ?></a>
<div class="clear"></div>
 
</div>
 
<?php endwhile; ?>
 
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
<div class="widget">
<h4>Widget Area</h4>
<p>This section is widgetized. To add widgets here, go to the <a href="<?php echo admin_url(); ?>widgets.php">Widgets</a> panel in your WordPress admin, and add the widgets you would like to <strong>Left Sidebar</strong>.</p>
<p><small>*This message will be overwritten after widgets have been added</small></p>
</div>
<?php endif; ?>
merci beaucoup !

tbt