wordpress - include function in php -


is correct or not because show error when im done

if(is_page('payment-success')) {      include("/wp-content/ga-ecommerce-tracking/ga-ecommerce-tracking.php"); } 

include accepts absolute path, relative path or url stream argument. using wrong absolute path here. try making relative path ( assuming editing file in wordpress root directory, if not change path accordingly)

if(is_page('payment-success')) {      include("./wp-content/ga-ecommerce-tracking/ga-ecommerce-tracking.php"); } 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -