Support » Fixing WordPress » Shortcode wont work!

  • Hello,

    I’ve tried to use shortcode but it doesnt work, I added those lines in my tempalte functions.php file

    add_shortcode('sayhello', 'sayhello');
    
    function sayhello(){
    	echo "Helloooooo!";
    }

    I write in post HTML section tag [sayhello] but it wont work… Whats the problem?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode wont work!’ is closed to new replies.