View Single Post
Old 05-25-2012, 06:39 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,558
Code Share, Post some snippets, perl, ruby, php, bash, python

Some designers for video based sites say have 4 videos, and they add a last class to the last one, here is some code for you to use for this in the wordpress loop

Code:
<div class="video<?php if (!((1+$wp_query->post_count) % 4)) echo ' last' ?>">
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote