Support

Account

Home Forums Add-ons Options Page WooCommerce single product tab get_field('someting','option') not working

Helping

WooCommerce single product tab get_field('someting','option') not working

  • Hi there,

    I would like to output an image url calling it from options panel via get_field(‘image’, ‘option’) on single product page in the tabs template. Even post object works, but I an unable to query anything via options call.

    Thank you

  • Hi @musenuovo

    This is the correct syntax for fetching from an options page:
    get_field('image', 'options');

    You missed the plural form of option 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘WooCommerce single product tab get_field('someting','option') not working’ is closed to new replies.