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

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

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -