Site icon Hip-Hop Website Design and Development

Shortcode content material just isn’t exhibiting. Solely the [shortcode-tag] is exhibiting

I’m making a small plugin the place I’m creating a number of shortcodes. I’m utilizing Traditional Editor plugin.

Right here is my code in Plugin.php:

<?php
/**
 * Plugin Identify: Easy Information Visualizer
 * Description: Reads knowledge from CSV and shows knowledge in required format
 * Model: 1.0.0
 * Creator: Subrata
 */

perform evd_dreambig_shortcode() {
    return 'Whats up! Are you able to dream huge?';
}

perform register_evd_shortcodes() {
    add_shortcode( 'dream-big', 'evd_dreambig_shortcode' );
}

add_action( 'init', 'register_evd_shortcodes' );

However once I put the shortcode in Put up content material as [dream-big], it’s only rendering the tag, i.e. [dream-big] on submit web page fairly than exhibiting its content material: Whats up! Are you able to dream huge?

I additionally took a distinct strategy:

perform evd_dreambig_shortcode() {
    return '<h1>Whats up! Are you able to dream huge?</h1>';
}

add_shortcode( 'dream-big', 'evd_dreambig_shortcode' );

However this doesn’t work both.

I’m utilizing a customized theme. I additionally tried by including add_filter( 'the_content', 'do_shortcode'); in features.php. Nonetheless no luck!

plugin.php is the one file in my plugin listing.

What I’m doing fallacious?