Home › Forums › General Issues › Shortcode for Title › Reply To: Shortcode for Title
Hi @fireleaf
Apologies for the delay.
You can create a custom shortcode to do this and get the values using the get_field_object() function.
Here is an example of how to achieve this:
$field_name = "text_field";
$field = get_field_object($field_name);
echo $field['label'] . ': ' . $field['value'];
Regarding the other question, please check out the wrapper attributes under the field edit screen.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.