Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #539870

    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

    #539946

    Hey integraing!

    No, PHP can not be executed in the editors. The plugins you mentioned can work around that though.

    Best regards,
    Elliott

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