Thanks @elliot.
I went with something similar to this to hard code the file.
I know this isn’t the most efficient but the load time is almost identical and updating will be far easier for co-workers if they need to make edits in the future.
. '[/toggle_item][toggle_item title="Textbook" active="false"]'
. $value = get_field( "textbookTitleH1", 23690 )
. $value = get_field( "textbookTitleUserInput" )
The script is built within a toggle shortcode
Thank you again so much for all of your hard work.
Thank you @elliot and @matiasvad for the quick reply’s.
I will work to drop this into the child theme, and I am sorry for my stubbornness but I would like to ask a couple of follow up questions.
If the prepend/append is not stored in the DB, then how does the prepend/append store information to display the prepend/append on the back end?
Secondly, If this cannot be displayed on the front-end, then what is the purpose of the prepend/append? — Is it to assist in filling in the form? Can you send an example of the uses?
I was having trouble finding this in the documentation.
Thank you guys so much, and again I am sorry if I sound like I am complaining because I am not. I beyond grateful for all that you do and for ACF.
Thank you again.
Thank you @elliot for the quick reply.
Before the update to acf or wp the prepend would display on the front end. E.g. If I had “Title: ” in the prepend and “WordPress 101” in the input field. The front end would display “Title: WordPress 101”.
The displaying of the prepend of the input field is no longer happening. The “Title: ” is not displaying on the front end, just the value put in the field input.
Thanks Elliot.
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.