این کد مربوط به درج تیتر در قالب هست:

کد PHP:
<a id="title" class="clear" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
من قبل از کد بالا کد زیر را که custom field بهم به شکل زیر داده را قرار دادم ولی نشون داده نمیشه

کد PHP:
/**
 * Activate Add-ons
 * Here you can enter your activation codes to unlock Add-ons to use in your theme. 
 * Since all activation codes are multi-site licenses, you are allowed to include your key in premium themes.
 */ 

function my_acf_settings$options )
{
    
// activate add-ons
    
$options['activation_codes']['repeater'] = 'XXXX-XXXX-XXXX-XXXX';
    
$options['activation_codes']['options_page'] = 'XXXX-XXXX-XXXX-XXXX';
    
$options['activation_codes']['flexible_content'] = 'XXXX-XXXX-XXXX-XXXX';
    
$options['activation_codes']['gallery'] = 'XXXX-XXXX-XXXX-XXXX';
    
    
// setup other options (http://www.advancedcustomfields.com/docs/filters/acf_settings/)
    
    
return $options;
    
}
add_filter('acf_settings''my_acf_settings');


/**
 * Register field groups
 * The register_field_group function accepts 1 array which holds the relevant data to register a field group
 * You may edit the array as you see fit. However, this may result in errors if the array is not compatible with ACF
 * This code must run every time the functions.php file is read
 */

if(function_exists("register_field_group"))
{
    
register_field_group(array (
        
'id' => '51083269a4fc5',
        
'title' => 'رو تیتر',
        
'fields' => 
        array (
            
=> 
            array (
                
'key' => 'field_5104f61a77550',
                
'label' => 'روتیتر',
                
'name' => 'روتیتر',
                
'type' => 'text',
                
'order_no' => 0,
                
'instructions' => 'برای ایجاد رو تیتر مورد استفاده قرار می گیرد .',
                
'required' => 0,
                
'conditional_logic' => 
                array (
                    
'status' => 0,
                    
'allorany' => 'all',
                    
'rules' => 0,
                ),
                
'default_value' => 'روتیتر را وارد نمایید.',
                
'formatting' => 'html',
            ),
        ),
        
'location' => 
        array (
            
'rules' => 
            array (
                
=> 
                array (
                    
'param' => 'post_type',
                    
'operator' => '==',
                    
'value' => 'post',
                    
'order_no' => 0,
                ),
            ),
            
'allorany' => 'any',
        ),
        
'options' => 
        array (
            
'position' => 'normal',
            
'layout' => 'default',
            
'hide_on_screen' => 
            array (
            ),
        ),
        
'menu_order' => 0,
    ));