Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Components specific to the page - How?
#13
I didn't need to publish a component on one page of my site. So I wrote this code:

Code:
if( return_page_slug() == 'page1' ) {
get_component( FALSE );
} else {
get_component( 'my_component' );
}

It worked!
Reply


Messages In This Thread
RE: Components specific to the page - How? - by inteltone - 2013-03-11, 05:14:11



Users browsing this thread: 3 Guest(s)