Can I change a variable in a content part while calling it?
Currently, you have your variable defined below the include which would be too late. If you defined the variable above the include it should be accessible by whatever file is included. $hssHeading = “A new different Title”; include( locate_template( ‘cp/heroSectionSmall.php’, false, false ) ); <!– heroSectionSmall.php –> echo $hssHeading; Maybe a better solution though is … Read more