Title: [Plugin: NextGEN Gallery] odd even function displaying galleries
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] odd even function displaying galleries

 *  [vanwidp](https://wordpress.org/support/users/vanwidp/)
 * (@vanwidp)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-odd-even-function-displaying-galleries/)
 * Is there a way to apply an odd-even function when displaying galleries in an 
   album? I am using the extended album view and would like to create a striped 
   effect by having a different colored background for odd galleries and even galleries.
 * I noticed this function as part of the index.php file in my current theme:
 * <?php /* Add Odd or Even post class so post containers can get alternating CSS
   style (optional) */
    $odd_or_even = (($bfa_ata[‘postcount’] % 2) ? ‘odd-post’:‘
   even-post’ ); ?>
 *  <?php /* This is the actual WordPress LOOP.
    The output can be edited at Atahualpa
   Theme Options -> Style & edit the Center column */ bfa_center_content($bfa_ata[‘
   content_inside_loop’]); ?>
 * Is there a way to customize this to work in album-extend.php?

The topic ‘[Plugin: NextGEN Gallery] odd even function displaying galleries’ is 
closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [vanwidp](https://wordpress.org/support/users/vanwidp/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-odd-even-function-displaying-galleries/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
