I just realized that this is a discussion forum and not for support. I’ll move my query to support.
Thanks.
I just posted a long reply saying thanks and that I got a PHP error when I added the block of code with my country array to the class file of the ACF example field type plugin template I downloaded from GitHub. When I added the code to my functions.php, I got no errors but am not sure if there was any effect on my custom Country List.
I ended up with an array on my from end form in place of the Country List field and after posting the array here got a message that I was banned from posting on this site.
Here’s my third attempt at posting this reply and asking where to place the block of code.
Thanks @John Huebner. It seems I am a little dense at this time of year. The page you referred me to seems to contain the solution to what I want but without clear instructions. It has many hints. For example, I surmise that (1) I will have to create an options page, (2) Configure it and add a text area, (3) Locate that page and save my list of countries in the text area, (4) collect some information about the page or text area, (5) include that information in the script to be added to a plugin or theme’s functions file.
I created the options page but can locate it nowhere except as a “page” to edit in ACF.
I guess I will have to delete that page and start again to see if there was something I missed along the way.
Ah. Found this for hiding the title in the editor and using a custom field: https://support.advancedcustomfields.com/forums/topic/delete-wp-title-and-use-acf-title/
I tried hiding the title using the first block of code and ended up hiding the entire WP editor.
This:
<style type="text/css">
#post-body-content {
display: none;
}
</style>
Should be replaced by:
<style type="text/css">
#titlediv {
display: none;
}
</style>
if the aim is hiding only the “title” field of the editor.
Glad I found this.
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.