Title: [Plugin: Ultimate Post Type Manager] Getting string &#039;xydac-null&#039;
Last modified: August 20, 2016

---

# [Plugin: Ultimate Post Type Manager] Getting string 'xydac-null'

 *  [Hector](https://wordpress.org/support/users/hectorpn/)
 * (@hectorpn)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-post-type-manager-getting-string-xydac-null/)
 * I am iterating to echo the contents of Checkboxes custom field. At the end I 
   keep getting a string “xydac-null”. I even did a var_dump and it is physically
   a string. Any clues?
 * Also, does anyone know why v 1.5 is not available for download from the other
   versions page?
 * [http://wordpress.org/extend/plugins/ultimate-post-type-manager/](http://wordpress.org/extend/plugins/ultimate-post-type-manager/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [XYDAC](https://wordpress.org/support/users/deepakseth/)
 * (@deepakseth)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-post-type-manager-getting-string-xydac-null/#post-2182259)
 * It’s fixed in recent version.
    Please check it out and also let me know.
 * Regards,
    -Xydac
 *  Thread Starter [Hector](https://wordpress.org/support/users/hectorpn/)
 * (@hectorpn)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-post-type-manager-getting-string-xydac-null/#post-2182260)
 * Hi Xydac. Thanks for the quick reply.
 * I have upgraded but the string is still present. I even re-saved the post hoping
   it would somehow overwrite the value, no luck.
 * This is my code:
 *     ```
       $ammenities = get_post_meta( $post->ID, 'ammenities', true );
   
                foreach ($ammenities as $i => $value) {
                 echo implode(", ", $value);
                }
       ```
   
 * The following in the changelog intrigues me, can you tell me how to use it?
 * > Added function xydac_get_post_meta to access values directly with php
 *  Plugin Author [XYDAC](https://wordpress.org/support/users/deepakseth/)
 * (@deepakseth)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-post-type-manager-getting-string-xydac-null/#post-2182261)
 * The best way to get data is by using shortcodes, it helps the developer to customize
   the data in the he wants and deliver it to the user.
    But still if you would 
   want to use the native php/WordPress function to get the output then just replace
   the `get_post_meta()` function call with `xydac_get_post_meta()` all you need
   to change is function name and leaving the rest to same. The function returns
   the value part if the content is an array, else it returns the value itself. 
   For the implementation of checkbox you can check out the output function in `
   fieldtypes/class-checkbox.php`.
 * You are getting the same string again because you are not using the shortcode
   for getting the value.
 * I would recommend using the shortcode, and even if you want to use it in template
   file as php code or anywhere else as php code then u can use the WordPress function
   to execute shortcode `do_shortcode()`.
 * Regards,
    -Xydac

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Ultimate Post Type Manager] Getting string 'xydac-null'’ is 
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-post-type-manager.svg)
 * [Ultimate Post Type Manager](https://wordpress.org/plugins/ultimate-post-type-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-post-type-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-post-type-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-post-type-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-post-type-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-post-type-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [XYDAC](https://wordpress.org/support/users/deepakseth/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-post-type-manager-getting-string-xydac-null/#post-2182261)
 * Status: not resolved