Support » Plugin: WooCommerce » How to add category page custom field to all its single products page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Three Sons


    Hi @waseemaslam,

    You could modify the conditional statement that you have so it’s like this:

    if ( get_field( 'size_guide' ) && has_term( 'your_category', 'product_cat' ) ) {

    You would need to replace the your_category with the actual category where you want this to display.

    After that this code will check and see if the size_guide field exists and also if the product is in the selected category. If it is, then it’ll show the content in the conditional statement.

    Hopefully, that will get you pointed towards a solution.


    Plugin Support Three Sons


    Hello @waseemaslam,

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please let open up a new topic and we’ll be happy to help out.


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.