Home › Forums › General Issues › How to set default value for custom field from theme › Reply To: How to set default value for custom field from theme
Hi,
I’m pretty sure the field is created in the theme. ACF doesn’t see any fields. So my understanding is that it’s in the PHP.
I can see in a php file how it gets displayed:
`for($i=0; $i<$tab_count+1; $i++){
$tab_icon = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.’free_tab_’.$i.’_icon’, true);
$tab_name = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.’free_tab_’.$i.’_title’, true);
$tab_content = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.’free_tab_’.$i.’_content’, true);
`
But where would I find exactly where these custom fields get declared in the first place? (since there is where I would set the default value, right?)
Thanks for the help 🙂
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.