I have a medium sized WP site with a custom theme that has a couple different page types, each with their own file name (ex. page-foo.php). If I want to include some php functionality on just a couple of these pages what is the best way to do so without repeating code?
Should I use bare bones PHP to include a php file? Is there some functionality built into WordPress that will make that easier?
Also, what if I want to include shared form processing on these pages? Could I still use one of the above solutions?