View Single Post
Old 02-07-2011, 01:54 PM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
WordPress. /thread

I'm not sure what do you mean by content rotation

ie if you want that every single time people visits your site they see different content:

Code:
<ul>
<?php
$args = array( 'numberposts' => 5, 'orderby' => 'rand' );
$rand_posts = get_posts( $args );
foreach( $rand_posts as $post ) : ?>
	<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
if you want that every time you add content that content is shown (like in latest added scenes) you don't need anything at all, that's the default for most if not all CMS, including WP

if you mean something like http://mozlo.com/pherlure/ you'll need a Jquery or Scriptaculous or Mootools script and some tweaking in the code. You can also use plugins, but so far I never found a plugin that does that better than hard coding the function
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote