Meta Box

A meta box which helps us to add content or scripts to any part of the website, on each individual post/page.

Installation

A meta Box appears on the admin area of all posts and pages, where you can add the required content.

Paste the Code or the Shortcode on any part of the website inside the loop.

The content what you typed on the meta box appears on that area of the WordPress template, where you have pasted the code.

Download From WordPress.org
 

Code

Shortcode:

 [ metacontent ] 

Code inside Theme Loop: 

<?php if ( function_exists('getmetacontent') ) getmetacontent(); ?>

Code Outside Theme Loop:

<?php if ( function_exists('getmetacontent') ) getmetacontent($post->ID); ?>

 

Example:

Simple Implementation outside Theme Loop


<?php

global $post;

if ( function_exists('getmetacontent') ) getmetacontent($post->ID);

?>

 

Download:

 

Screenshot:

Meta Content

Meta Content

 
 

Thanks for Visiting. Mervin Praison