The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Way to get individual pages? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Themes (http://get-simple.info/forums/forumdisplay.php?fid=10) +--- Thread: Way to get individual pages? (/showthread.php?tid=2149) |
Way to get individual pages? - Derek - 2011-09-06 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? Way to get individual pages? - mikeh - 2011-09-06 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? you could always use multiple wysiwyg editors (using Custom Fields plugin) Way to get individual pages? - getsimplethemes - 2011-09-06 I use the following function to do this (place this function inside the "functions.php" file within your theme folder). Code: function get_content($page){ To call the function, you should pass the slug of the page you're trying to retrieve. The function will return an array containing several specifics for that page. To echo the content of the page, do something like: Code: $page = get_content('my-page'); - Matt Way to get individual pages? - mvlcek - 2011-09-06 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'); ?> If you want to include the content of one page within another,
Code: <?php
|