home page articles manipulations
-
Hello
I am using “Advanced category excluder” to exclude some categories from appearing on the home page, and while the plugin is working great i still need to do some manipulations to the home page that i would like to get some help from you guys to achieve, so here it is:
1-I’ve use the marquee code to show the latest posts using this:
[code]
<marquee dir="rtl" id="title1" direction="right" scrollamount="3" onmouseover="this.stop()" onmouseout="this.start();">
| <?php
if (have_posts()) :
while (have_posts()) : the_post();
$arc_year = get_the_time('Y');
$arc_month = get_the_time('m');
$arc_day = get_the_time('d');
?>
"><?php the_title(); ?> |
<?php endwhile; endif; ?></marquee> [/c/de]%pAand it worked but the problem is that now after the marquee part is done and we come to the normal article posting, the latest post is shown twice, anyideas why? and how can i fix it?
2-What is the code i should use to have the home page show only the latest article(one item) from a certain category as long as it not older then 24 hours, kind of like a "breaking news" category, so if say i post something into the category "breaking news" for example, it will show up on the front page at the top in special formatting. i'm looking for the function that i can put in the index.php template file that will do that
that's it for now, and i would really appreciate some help
- The topic ‘home page articles manipulations’ is closed to new replies.