Skip to main content
Function call incorrect, should be get_option, not get_options.
Source Link
  if(get_options 'twentytwelve' == get_option("template" 'template' )=='twentytwelve' ) {
      // do something
  }
  if(get_options("template")=='twentytwelve'){
       do something
  }
  if( 'twentytwelve' == get_option( 'template' ) ) {
    // do something
  }
Source Link
liying
  • 136
  • 1
  • 7

  if(get_options("template")=='twentytwelve'){
       do something
  }