Hi,
Can I execute php code into code block in “Avia Layout Manager”?
I want to display the amount of product with an animated number that I have in WooCommerce with the following code
$args = array( 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1 );
$products = new WP_Query( $args );
return $products->found_posts;
I’ve tried both Exec PHP and Insert PHP plugins but they didn’t work.
Thanks
Regards,
Salvatore
Hey integraing!
No, PHP can not be executed in the editors. The plugins you mentioned can work around that though.
Best regards,
Elliott