A
A
Alexander Ruzhevich2015-12-22 01:31:36
WordPress
Alexander Ruzhevich, 2015-12-22 01:31:36

How to assign a class to an element from an additional field?

Good day, I use the Types plugin to create custom fields in posts, everything works with a bang, but I can’t assign a class to an element that is in an additional field
. For example, I display a picture in the "post_logo" field with this code:

<?php echo do_shortcode ('[types field="post_logo"][/types]'); ?>

the question is how to assign a class to this picture? and indeed to any element displayed in the field so that you can set styles for it. Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Belov, 2015-12-22
@ruzhevich

<?php echo do_shortcode ('[types field="post_logo"][/types]'); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question