0

I'm trying to include a product template in my header.php file and i want to get a custom field value on header from product page.

I have added properly when i need to get custom field values from page but i don't know what's going wrong

This is my code which i have added in header.php file :

include ('template-parts/custom-product.php'); 

Should i need to add some code for display content ?

Any help is appreciated, thank you!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.