Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Way to get individual pages?
#4
Derek Wrote:I am doing a site that has multiple pages on one page....is there a way I can load the home page via get_page_content and then use another function to get an about page or something like that?

If you use the I18N Plugin, you can use
Code:
<?php get_i18n_content('my-page-slug'); ?>
to include the content of page my-page-slug in the template or a component.

If you want to include the content of one page within another,
  • create a component named content:
Code:
<?php
global $args;
if (count($args) > 0) get_i18n_content($args[0]);
?>
  • install the DynPages plugin
  • include the text {% content my-page-slug %} in a page where you want to include the content of page my-page-slug
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Way to get individual pages? - by Derek - 2011-09-06, 08:57:27
Way to get individual pages? - by mikeh - 2011-09-06, 11:37:11
Way to get individual pages? - by getsimplethemes - 2011-09-06, 14:39:49
Way to get individual pages? - by mvlcek - 2011-09-06, 15:47:56



Users browsing this thread: 1 Guest(s)