|
| As Metabox Easy To Use WordPress Metabox Framework. Wordpress Tutorial |
|
Noted That:
|
|
Start the Tips:
Step-1 : Download " as-metabox.zip " to Your Local Computer. Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.
Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.
Step-4 : Now, Click on " Upload Plugin " button.
Step-5 : Now, Browse " as-metabox.zip " Downloaded plugin from your computer, Where you downloaded " as-metabox.zip " According to Step – 1 Above then, click on " Install Now "
Step-6 : Now, Click on " Active Plugin "
Step-7 : Then, See left Side Menu. " As Metabox " folder is added on left Side Menu. Now, Click on " As Metabox " folder. Noted that: If you do not see " As Metabox " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ". Step-8 : Now you configure yourself oR Watch video tutorial below about As Metabox Configurations and Settings or How to work " As Metabox " in your WordPress site. oRAfter Activated Plugin According to Step-6 then,
|
| Guide |
|---|
|
Usage as Plugin 1. Upload ‘as-metabox‘ folder to the ‘/wp-content/plugins/’ directory or Install as a regullar WordPress plugin Usage as Theme 2. require_once get_template_directory_uri() .'/as-metabox/as-metabox.php'; Make a Basic MetaBox Sample
$asmeta = new As_metabox(array( 'title' =>
__('Meta box demo 1', 'asm'), //MetaBox Title 'id' =>
'demo-id-1', //MetaBox Id Please Give An Unique Id 'screen' =>
array('post'), //MetaBox Post Type Example array('post', 'page'), 'context' =>
'advanced', //MetaBox Post Context 'priority' =>
'low' //MetaBox Post Priority ));
$asmeta->
add_section(array( 'title' =>
__('Text fields', 'asm'), 'id' =>
'section-1', 'icon' =>
'fa-text-width', 'fields' =>
array( array( 'id' =>
'text-field', //Option Id Please Give An Unique Id 'title' =>
__('Text Field', 'asm'), //Option Id Title 'desc' =>
__('Text Field Demo', 'asm'), //Option Id Description 'type' =>
'text', //Option Id Type 'default' =>
'text', //Default Option Value ) ) ) );
|
| Name |
|---|