Click here for EduSec Demo EduSec Screenshots

Shortcode in wordpress

On 2013-06-10 - By Ravi Thanki

Short code is a simple set of functions for creating macro codes for use in post content.
The `add_shortcode () ` function is used to register a short code handler. It takes two parameters: the short code name (the string used in a post body), and the callback function name.

 

add_shortcode(‘ravi’,'displayname’);
Here test is string used in page or post body and displayname is callback function.