Sports Websites Ireland

Syd Marketing designed and manages NewryRugby.com, the website is commissioned for a complete update this Spring, and this has already begun with some new features including a “electronic” scoreboard displaying the latest results from every team. The scoreboards are updated by drawing additional fields from the latest posts in the relevant category. Have a look at NewryRugby.com for more.

Sports Websites Ireland

For your own Sports website with this feature for any sport including Rugby Websites, Soccer Websites, Football Websites and even GAA website design, please contact us.
Sports websites Ireland

Random Post in Current Category

As a novice WordPresser, this took ages for me to figure out, but eventually managed to solve. If you have a category and want to display one or a number of random posts from only that category then this is how you achieve it. In your archive.php under the category section use the following…

<?php query_posts(‘showposts=1&orderby=rand&cat=’.$cat); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href=”<?php the_permalink(); ?>”>
<?php the_title(); ?>
</a>  </li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>

The key being…

<?php query_posts(‘showposts=1&orderby=rand&cat=‘.$cat); ?>