mnewmedia
Member
Posted 1 year ago #
Hi, i made a Plugin with a slider function with a shortcode this worked great.
I decided to add a second function in with a second shortcode in the same Plugin - and this second shortcode makes doesn't matter where i place it an Fatal Error.
Fatal error: Call to undefined function add_shordcode()
Does anybody now whats the problem?
[code moderated - please use the pastebin for any code over 10 lines]
a spelling mistake:
this add_shordcode("lili", "pacc"); should read add_shortcode("lili", "pacc");
mnewmedia
Member
Posted 1 year ago #
aaaaaaaaaaaaaaaaaah
Spending soo much time for this stupid mistake =)
Thaaanks a lot!!
Make sure that in wp_config.php you have WP_DEBUG set to TRUE. This will turn on error reporting and you should see a lot of warnings and errors pop up. Most people coding in PHP tend to avoid these, and they shouldn't because they can be insightful for finding bugs etc.