Include Meta Box Plugin In Themes
Though Meta Box actually is a plugin, but you can still use it in a theme without conflicts. IMPORTANT NOTE: Please, always test if a file exists, before including it. if ( ! file_exists ( $file ) ) wp_die ( "The file at location {$file} doesn't exist. Check your pathes!" ); Include Meta Box Script version < 4.0 In previous versions of Meta Box Script (< 4.0), you can simply put the script files into theme folder and include 2 files: include 'meta-box-3.2.2.php' ; include 'meta-box-usage.php' ; Include Meta Box Script version >= 4.0 Since version 4.0, the script has wrapped into a plugin, and thus the code above might not work properly. To include the Meta Box Script in a theme, please follow the guide below: 1. Download the script and put it in your theme folder For example, if your theme name is sample-theme , then your folder structure after copying meta box script will look like: sample - them...