Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display components in specific page only.
#4
If you give every component the same id as their corresponding page slugs, you can insert this in the sidebar:
Code:
<?php get_component(return_page_slug()); ?>
That is, a page with slug my-page would display component with name my-page (if that component exists).
Reply


Messages In This Thread
Display components in specific page only. - by Carlos - 2012-02-09, 05:28:24



Users browsing this thread: 1 Guest(s)