Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 4th, 2010  |  syntax: None  |  size: 0.18 KB  |  views: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         <?php
  2.             $post->ID = "XXXX";
  3.                 $sidebar = get_post_meta($post->ID, "custom_sidebar", true);
  4.                 if($sidebar) {
  5.                         get_sidebar('custom');                         
  6.                 } else {
  7.                         get_sidebar();
  8.                 }
  9.         ?>