Home › Forums › Front-end Issues › Display append on frontend › Reply To: Display append on frontend
Hi there,
I am using Elementor to display the custom fields and I would like to display append and prepend for some values in the frontend.
I could not get it to work yet. Could you provide further instructions where to add the PHP code? I tried to paste it at the end of my themes functions.PHP file, but that did not show results. Do I paste it somewhere else?
1. I added to the PHP file:
$field = get_field_object('height');
echo $field['append'];
2. I added the code directly to my Elementor theme templates HTML:
<p><?php $field = get_field_object('height'); echo $field['append'];?></p>
I am not sure what I am getting wrong here. Are you able to help me?
many thanks!
Moritz
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.