How to make a custom shortcode in wordpress

Shortcode are the wordpress powered codes that helps to enable the special kinds of content used in dashboard pages. To create new shortcode function. Use the below function to copy in funciton.php function featured_images($atts, $content = null) { return ‘<div class=”fetaured_images”&gt’ . $content .'</div> ‘; } add_shortcode(‘featured’, ‘featured_images’); You can now use your featured images […]