Title: [Plugin: Developer&#039;s Custom Fields] slt_cf_field_value() returns nothing
Last modified: August 20, 2016

---

# [Plugin: Developer's Custom Fields] slt_cf_field_value() returns nothing

 *  Resolved [thv20](https://wordpress.org/support/users/thv20/)
 * (@thv20)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-slt_cf_field_value-returns-nothing/)
 * I’ve defined my custom fields as per the example in the documentation, only slightly
   modified for my post type “Book”:
 *     ```
       if ( function_exists( 'slt_cf_register_box') )
       	add_action( 'init', 'register_my_custom_fields' );
   
       function register_my_custom_fields() {
       	slt_cf_register_box( array(
       		'type'		=> 'post',
       		'title'		=> 'Additional info',
       		'id'		=> 'book-box',
       		'context'	=> 'normal',
       		'priority'	=> 'high',
       		'fields'	=> array(
       			array(
       				'name'			=> 'reviews',
       				'label'			=> 'Reviews',
       				'type'			=> 'wysiwyg',
       				'scope'			=> array( 'book' ),
       				'capabilities'	=> array( 'edit_posts' )
       			),
       			array(
       				'name'			=> 'extras',
       				'label'			=> 'Extras',
       				'type'			=> 'wysiwyg',
       				'scope'			=> array( 'book' ),
       				'capabilities'	=> array( 'edit_posts' )
       			)
       		)
       	));
       }
       ```
   
 * The data is stored/updated correctly in the back-end.
 * When I try to access it on the front-end, in my single view (single-book.php)
   it shows nothing. I’m using:
    `<?php echo '<p>Reviews: ' . slt_cf_field_value("
   reviews" ) . '</p>'; ?>`
 * Am I doing it wrong?
 * [http://wordpress.org/extend/plugins/developers-custom-fields/](http://wordpress.org/extend/plugins/developers-custom-fields/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [thv20](https://wordpress.org/support/users/thv20/)
 * (@thv20)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-slt_cf_field_value-returns-nothing/#post-2278401)
 * It suddenly started working; no idea what I did wrong, probably a typo somewhere
   else.
    Thanks for the plug-in!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Developer's Custom Fields] slt_cf_field_value() returns nothing’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/developers-custom-fields.svg)
 * [Developer's Custom Fields](https://wordpress.org/plugins/developers-custom-fields/)
 * [Support Threads](https://wordpress.org/support/plugin/developers-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/developers-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/developers-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/developers-custom-fields/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [thv20](https://wordpress.org/support/users/thv20/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-slt_cf_field_value-returns-nothing/#post-2278401)
 * Status: resolved