Reading This
Display posts ticker-style in WordPress with Zazz
I was thinking about a way to showcase older posts and happened across the Zazz Post Tickerplugin by Stew Houston.
I thought “Here we go, another chance for me to totally bork my blog with some unknown piece of code…” So I picked up the scissors and blah-blah-blah (you get the idea).
I took a quick look at the instructions (note that for historical purposes) and I didn’t see where I had to re-write my server’s kernel or edit core WordPress components and figured “wot the ‘ell”.
The good points: Easy to install, light-weight and does exactly what it’s supposed to do right out of the box (and that’s with WordPress 2.3-beta3). It’s easy to configure (though it does require editing the zazz-post-ticker.php file, it’s a simple, straight-forward edit), it doesn’t use tables (thank you, I’ve puked enough this week) and the CSS is not convoluted! It allows for changing the duration before fading, the number of posts and even allows for an offset (seems redundant to me to display post information that’s displayed an inch lower on the page so I liked this feature).
The bad point (singular, mind you): The javascript isn’t wrapped so it isn’t valid. But here’s a quick fix:
Open up zazz-post-ticker.php and go to line 30, it should look like this:
echo "\n”;
Add:
echo "//]]>\n";
Now you have a light-weight, easy to install/configure post ticker for WordPress that validates as well!
Feedback welcome.
Related Posts:
3 Users Commented on " Display posts ticker-style in WordPress with Zazz "
Hi… i have modified the query, so the plugin compatible with wp 2.3
http://www.uploading.com/files/UY7V5GZ3/zazz-post-ticker.zip.html
NOTE : to show post only in one category, just add t.term_id=[fill with category id] in where clause query
thanks
Hi Sam,
Thanks for the nice review of the post ticker. I wrote the code a little whiles back, before I started using the CDATA trick to write valid 1.1 markup.
I’ll definitely add this in to the current file.
Thanks again
Stew
Hi,
is there a way to do the same with recent comments ?
Thanks
Bye!!
