Including contents of a page in another page via custom template
-
My home page features 3 panels that display announcements, blog posts, and press coverage.
Right now that content is being pulled in as PHP “includes” of text files like this one, so when I need to update one I don’t introduce the risk of touching the template file itself.
<?php include("wp-content/themes/corporate_10/includes/homepage_announcements.inc"); ?>
I’d rather have those panels the display the contents of a specific page so I can edit the contents with WP instead of manually editig the inc file it’s calling.
From what I’ve read I THINK the solution involves something somewhat like this but I know it’s not right as is and I have no idea what I’m doing. : )
<?php wp_get_page('page_id=3676'); ?>
Lil help please?
- The topic ‘Including contents of a page in another page via custom template’ is closed to new replies.