2012-07-03, 02:45:32
You could do something like this
Create the pages that you want to include on your main page as child pages and the above code will display the child page content in the main page.
You could also install the Custom Fields plugin and pull only certain fields using
Code:
<?php $items = getChildren(return_page_slug());?>
<?php foreach($items as $item): ?>
<div class="col">
<?php echoPageContent($item); ?>
</div>
<?php endforeach;?>
Create the pages that you want to include on your main page as child pages and the above code will display the child page content in the main page.
You could also install the Custom Fields plugin and pull only certain fields using
Code:
<?php echoPageField($item, CUSTOMFIELD); ?>