Support » Fixing WordPress » How to Include Shared Functionality on 2 Pages

  • Hi there,

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Include Shared Functionality on 2 Pages’ is closed to new replies.