Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Get Sidebar PHP
#1
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.
Reply
#2
Code:
<?php getPageContent(return_page_slug().'-sidebar'); ?>
Reply
#3
(2016-04-10, 06:22:54)Carlos Wrote:
Code:
<?php getPageContent(return_page_slug().'-sidebar'); ?>

Thank you!
Reply




Users browsing this thread: 1 Guest(s)