Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION getPageContent and get_parent
#2
Add a page_exists function to your theme's functions.php, see here:
http://get-simple.info/forums/showthread...6#pid44706

Then the code for your template could be:
PHP Code:
<?php if (page_exists(get_parent(false).'-sidebar')) getPageContent(get_parent(false).'-sidebar'); ?>
Reply


Messages In This Thread
getPageContent and get_parent - by newdeepdan - 2014-09-28, 05:38:59
RE: getPageContent and get_parent - by Carlos - 2014-09-28, 18:05:55



Users browsing this thread: 1 Guest(s)