The plugin has a demo folder https://github.com/rilwis/meta-box/tree/master/demo, which contains some default demo scripts. We continuously add more demos into that folder, so keep checking it frequently!
Firstly, you should start with
demo.php by downloading it here. It is the basic and has all explanations in comments (please read them carefully to understand how to write the script correctly).
Here’re steps to integrate the
demo.php into your theme:
demo/demo.phpfile to your theme folder
functions.phpfile of your theme and add the following code:
Now go to Add New Post page and see the result. If everything is ok, you’ll see as the following screenshots: