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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author XYDAC

    (@deepakseth)

    It’s fixed in recent version.
    Please check it out and also let me know.

    Regards,
    -Xydac

    Hector

    (@hectorpn)

    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

    (@deepakseth)

    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.