Advertisement
Guest User

Untitled

a guest
Feb 25th, 2011
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. slt_cf_register_box( array(  
  2.     'type'  => 'post',
  3.     'id'    => 'price',  
  4.     'title' => 'Price Option',  
  5.     'context' => 'normal',
  6.     'priority' => 'high',  
  7.     'fields' => array(  
  8.         array(  
  9.             'name' => 'price-opt',  
  10.             'label' => 'Hide/Unhide price',  
  11.             'description' => 'Chose where hide or unhide price',  
  12.             'type' => 'select',
  13.             'options_type' => 'static',
  14.             'options' => array( 'Yes' => 1, 'No' => 0),
  15.             'label_layout' => 'inline',
  16.             'capabilities' => array( 'edit_posts' ),
  17.             'scope' => array( 'post' )
  18.         )
  19.     )
  20. ));
  21.  
  22. //File: slt-custom-fields-display.php on line 271
  23.  
  24. //Substitute this
  25. if ( $value == '[optgroup]' ) {
  26. //with this
  27. if ( !is_numeric($value) && $value == '[optgroup]' ) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement