Assign classes to Custom fields
I think you have to output these Custom Fields manually to do it. You can do it like so (let’s assume your custom fields are: first-meta-key, second-meta-key, third-meta-key and you set them single value – no field has multiple values assigned to it): <ul> <li><span class=”first-post-meta-key”>Name: </span> <?php echo esc_html(get_post_meta($post->ID, ‘first-meta-key’, true)); ?></li> <li><span class=”second-post-meta-key”>Name: … Read more