GetSimple Support Forum
QUESTION Get Sidebar PHP - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: QUESTION Get Sidebar PHP (/showthread.php?tid=8317)



Get Sidebar PHP - newdeepdan - 2016-04-10

I'm trying to create a template where in the sidebar section it would get the page content from "pageslug-sidebar", I'm probably not doing this right:


Code:
<?php getPageContent((get_page_slug())'-sidebar'); ?>

Is there anyone that could help me out? Thank you in advance.


RE: Get Sidebar PHP - Carlos - 2016-04-10

Code:
<?php getPageContent(return_page_slug().'-sidebar'); ?>



RE: Get Sidebar PHP - newdeepdan - 2016-04-10

(2016-04-10, 06:22:54)Carlos Wrote:
Code:
<?php getPageContent(return_page_slug().'-sidebar'); ?>

Thank you!