HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/bristolfilton.co.uk/public_html/wp-content/themes/Endolf/inc/ticker.php
<?php
function get_news_ticker($tickercat, $count){
	global $post;

	$args = array(
        'posts_per_page' => $count,
        'cat' => $tickercat,
    );

	$loop = new WP_Query( $args );
	echo "<ul>";
	while ( $loop->have_posts() ) : $loop->the_post(); ?>

	<li class="ticker-item">
		<b><?php the_time('M j, Y'); ?></b>  - <a href="<?php the_permalink();?>"> <?php the_title(); ?> </a>
  	  	
  	</li>

    <?php endwhile;
    echo "</ul>";
    wp_reset_postdata();
}