Hello friends, welcome to my another blog how to Add Odd And Even Class to WordPress Posts. If you want to design your WordPress blog posts with odd even style but you did not know the exact solutions then paste the below code in your theme functions.php.



Here we use post_class filter to get the solution. Now go to your blog listings page and you will see that odd and even class added automatically into your blog. This code is tested in WordPress twentyfourteen theme. If you face any problems please comment below.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
How to Add Odd Even Class to WordPress Posts
Tagged on: