Support

Account

Home Forums ACF PRO Display Custom Field on Product Category Page

Helping

Display Custom Field on Product Category Page

    • rdueck

    • August 26, 2020 at 6:01 am

    I added a custom field to the product category page. It’s a Wyswig field. I can’t seem to figure out how to display the field on the page.

    I’ve edited the product-archive.php file and placed the following code before the woocommerce_product_loop_end(); hook

    $value = get_field( 'bottom_description', 8 );
    	echo $value;

    I’ve also tried adding a hook in the functions.php file.

    add_action( 'woocommerce_after_shop_loop', 'prodcatdesc' );
        function prodcatdesc() {
            echo the_field('bottom_description');
        }

    How can I get this to work?

  • Did you get this to work? If so how??

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.