Getting Started

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 from https://github.com/rilwis/meta-box/blob/master/demo/demo.php. It is the basic and has all explanation 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:

  • Copy demo/demo.php file to your theme folder
  • Open functions.php file of your theme and add the following code: include 'demo.php';

Now go to Add New Post page and see the result. If everything is ok, you’ll see as the following screenshots:

Meta Box Plugin Screenshot Getting Started

To display meta value on posts/pages, please read this tutorial about helper function

See more tutorials