Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can one page gets content dynamically from others?
#3
You could do something like this
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); ?>
Reply


Messages In This Thread
Can one page gets content dynamically from others? - by jay_m - 2012-07-03, 02:45:32



Users browsing this thread: 1 Guest(s)