Support » Fixing WordPress » How can I write PHP function inside HTML?

  • How can I write PHP function inside HTML?

    https://i.imgur.com/t6edfX5.png

    function woocommerce_template_loop_product_thumbnail() {
    	
    	printf( '<span class="et_shop_image">%1$s<span class="et_overlay">woocommerce_template_loop_product_title();</span></span>',
    		woocommerce_get_product_thumbnail()
    	);
    	
    }
    • This topic was modified 3 months, 3 weeks ago by  Steve Stern.
Viewing 1 replies (of 1 total)
  • Most of the time, a shortcode is used. In the new editor, a block might have a way to get the dynamic content.

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