Support

Account

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 🙂