the_flexible_field

The Advanced Custom Fields the flexible field function.

Description

the_flexible_field( (string) $field_name, (constant) $post_id = false ); 

Parameters (2)

0. $field_name (string)
The field name.
1. $post_id — Optional. (constant) => false
The post id.

Usage

  1. if ( !function_exists( 'the_flexible_field' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'advanced-custom-fields/core/api.php'; 
  3.  
  4. // The field name. 
  5. $field_name = ''; 
  6.  
  7. // The post id. 
  8. $post_id = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = the_flexible_field($field_name, $post_id); 
  12.  

Defined (1)

The function is defined in the following location(s).

/core/api.php  
  1. function the_flexible_field($field_name, $post_id = false) 
  2. return has_sub_field($field_name, $post_id);