css - Wordpress - Custom fields & Class Identifiers -


in wordpress - how assign class custom fields? attempting target multiple custom fields custom css, seem unable give them separate classes.

this not best solution, worth shot, i'd loop per field get_posts this:

$args = array(     'meta_key' => 'custom_attribute',     'meta_value' => 'value1',     ); $value1 = get_posts($args);  $args = array(     'meta_key' => 'custom_attribute',     'meta_value' => 'value2',     ); $value2 = get_posts($args); 

so give 2 arrays, each 1 pulling different posts, can foreach going through each array (value1 , value2) , adding classes needed.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -