functions – I want to display latest post in marquee

Question

Latest News:

    <marquee 
    behavior="scroll" direction="left" scrollamount="3" scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()">
    <?php $latest = get_posts('numberposts=5'.'&offset="."&cat=13'); foreach( $latest as $post ): ?>
    
    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> &nbsp; &nbsp;
    <?php endforeach; ?>
</marquee>

</ul>

‘;
}
add_action(‘wp_head’,’rif_css_fileLink’);
?>

0
Mostafizur Rahman 2 months 2022-06-03T16:47:04-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse