Install and configure plugin SimpleFields. var_dump (WP_Query ()) returns a list of fields made in the same way by this plugin. But it does not work out using the plug-in functions - it gives an error:

Uncaught Error: Call to undefined function simple_field_value() 

Field output code:

 //$field_value = simple_field_value("name_home"); // name_home - слаг одного из полей $field_value = simple_fields_value("property_fields"); // property_fields - слаг группы полей echo "The field has the value: $field_value"; 

Why do I get undefined function?

Did everything according to the documentation:

 https://ru.wordpress.org/plugins/simple-fields/ 
  • one
    You should not use plugins that have not been updated for 2 years. And where are you making this call from? - KAGG Design
  • @KAGG Design, from the index.php file, on the main page. In the task indicated to use this plugin. - Alexander
  • one
    And you do this, probably, up to the line require( dirname( __FILE__ ) . '/wp-blog-header.php' ); - KAGG Design
  • Code index.php show? - KAGG Design

0