Automatic change of posts in an array!?
-
I feature 3 specials each in four “Featured sections” on my homepage. Right now I am doing it like this
<?php $recent = new WP_Query( array( "post__in" => array(419,1409,1091) ) ); while($recent->have_posts()) : $recent->the_post();?>
The thing is that I have to change the featured posts every day manually by putting in different ID’s. That’s not very elegant and it’s just pretty annoying since I have four “Featured Sections” on my homepage with 3 featured articles each.Is there a way to turn this process into an automatic one? I don’t add posts every day to the categories so “grabbing the most recent posts” would not help. I was basically thinking if I can add a “pool” of post ID’s somewhere from where the featured section grabs different ID’s every day … or something like that. I really don’t know if that is possible.
Let me know if anyone has an idea what I can do about it.
Thanks!
The topic ‘Automatic change of posts in an array!?’ is closed to new replies.