Title: customfields class
Last modified: March 6, 2019

---

# customfields class

 *  Resolved [inula](https://wordpress.org/support/users/janetb/)
 * (@janetb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/customfields-class/)
 * Hi,
    I wouldlike to give each of the customfields a different class.
 * customfield_display=”date1,date2″ customfield_display_separately=”yes” customfield_class
   =”date”
 * This is what I do now. Date1 and date2 both have class=”date”.
    I tried customfield_class
   =”date1,date2″ 🙂 but that doesn’t work.
 * Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [inula](https://wordpress.org/support/users/janetb/)
 * (@janetb)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/customfields-class/#post-11430227)
 * No one?
    I wouldlike to give each of the customfields a different class….
 *  Thread Starter [inula](https://wordpress.org/support/users/janetb/)
 * (@janetb)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/customfields-class/#post-11430309)
 * Found it:
 * /*
    * Select all customfields of the list, including the first one, * and give
   them a color. */
 *     ```
       li > .customfields {
           color: red;
       }
       ```
   
 * > … then “undo” the styles for elements with the class that come after the first
   > one, using the general sibling combinator ~ in an overriding rule:
 * /*
    * Select all but the first .customclass child of the list element of lcp,*
   and remove the color from the previous rule. */
 *     ```
       li > .customfields ~ .customfields {
           color:#09458F;
       }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘customfields class’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [customfields](https://wordpress.org/support/topic-tag/customfields/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)

 * 2 replies
 * 1 participant
 * Last reply from: [inula](https://wordpress.org/support/users/janetb/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/customfields-class/#post-11430309)
 * Status: resolved