• Resolved kasparjarve

    (@kasparjarve)


    Hi,

    I’m using your plugin and added file upload field with your plugin to Woocommerce shop_order (order admin page). I would like to display the value of the field (file link) in the front end – so I copied code:

    <?php ot_meta($var,[$echo=1]); ?>

    to the file template where I would like to display the value, but it does not display anything.

    Can you help somehow.

    BR,
    Kaspar

Viewing 1 replies (of 1 total)
  • Plugin Author Rajilesh Panoli

    (@rajilesh)

    It will work only inside loop.

    instead of ot_meta($var,[$echo=1]);

    just replace your key with $var

    support our field id is “custom_field_image”,

    ot_meta(‘custom_field_image’,1);

    otherwise you can simply use wordpress default
    echo get_post_meta(get_the_ID(),’custom_field_image’,true);

    both will work

Viewing 1 replies (of 1 total)
  • The topic ‘Front end data display’ is closed to new replies.