Skip to content

Instantly share code, notes, and snippets.

@vc27
vc27 / do_color_classes.php
Created May 3, 2012 22:15 — forked from rodgerthat/do_color_classes.php
Considerations: Iterating through an array of class names and adding them to the Post Class
<?php
/************* ADDING CLASSES TO POST_CLASS **************/
// every post has a few uniquely colored elements, rather than rely on CSS nth-magic, and to keep things smooth
// and not conflict w/ trying to use jQuery nth-magic in tandem w/ the endless scroll,
// the option is to get the server to do the heavy lifting,
// ideally it would be nice to pass the array of classes to iterate thru into the filter,
/**
*
* @param $classes