Create Custom WordPress Includes
Another challenge I had when creating the WordPress theme for Rose Edge LLC was that I needed to create a couple of custom includes, and I didn’t know how to do that. I needed a space on the sidebar where Kristin could update her Upcoming Event area. I didn’t want to have to teach her how to go into the backend code and edit sidebar.php. Also, I needed a way for her to edit the “Insight Flash” that appears on her home page. I had already found a way to use the Excerpt as a secondary source of content – I needed another solution.
Enter the Improved Include Page plugn
The Improved Include Page plugin allows you to include the content of a static page in a template file. Once installed you simply create a new page, save it, and note the page number. and then call to that page anywhere in your template. For instance, if your page was #21 your call would look like this: <?php iinclude_page(21); ?>. And that’s all there is to it!
I created two pages for Rose Edge – one called “Edit Next Event” and one called “Edit Insight Flash” (I used Edit as the first word in the title so that any pages being used in this way would group together and be easily recognizable.)