Shortcodes problem
-
In a new version of WordPress Link Directory, I’ve added a second shortcode function for a [wplink] shortcode. The existing shortcode was [wplinkdir] which showed pages or categories of links while the new [wplink] should show a single link.
The problem is that when I activate my plugin I get an error: Plugin could not be activated because it triggered a fatal error.
Fatal error: Cannot redeclare wplinkdir_wplink_shortcode() (previously declared in seanbluestone.com/public_html/wp-content/plugins/link-directory/link-directory.php:34) in seanbluestone.com/public_html/wp-content/plugins/link-directory/link-directory.php on line 34
And I’m not sure why. I even wrapped the function in question in an if(function_exists()){ but to no avail.
I can only imagine it’s something to do with the way WordPress handles shortcodes but any help or thoughts are appreciated.
- The topic ‘Shortcodes problem’ is closed to new replies.