Custom field code not working since update

[ad_1]

I have a piece of code in a custom template which no longer works and I can’t find how to fix it in the documentation.

<td class="zone"><?php the_field( 'picking_zone', $item['product_id'] ); ?></td>

I tried to edit it by copying the custom field in the way it is shown in the documentation

<?php $this->custom_field('picking_zone', $item['product_id'] ); ?>

That did not work, but at least it didn’t break anything.
Where can I find out how to fix it?

 

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