Add custom fields | WordPress.org

[ad_1]

Hi @magick207:

You have used conf_info_bdg_affil not only as a meta key, but also as a method, that is a class function that do not actually exists within the code base.

That said, please try with this code snippet instead:

<tr class="custom-field">
<th><?php _e( 'Custom field:', 'woocommerce-pdf-invoices-packing-slips' ); ?></th>
<td><?php $this->custom_field( 'conf_info_bdg_affil' ); ?></td>
</tr>

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer