Parse Error
-
Parse error: syntax error, unexpected ‘<‘ on line 17
Hello, I am learning to write the plugins for WordPress. I get the above error when attempting to activate my plugin in wordpress.
Am I not able to use html?
when I remove the html, I get no parse error when activating.
The following is my code:
<?php /** * Plugin Name: somePlugin * Plugin URI: http://www.syntaxbytes.com * Description: This is a description * Version: 1.0 * Author: Paul Ishak * Author URI: http://www.syntaxbytes.com * License: GPL2 */ # Generated with WordPressPluginDesigner v0.1 add_action('admin_menu', 'somePlugin_admin_actions'); function somePlugin_admin_actions(){ add_options_page('Some Plugin Settings', 'somePlugin', 'manage_options', __FILE__, 'somePlugin_admin'); } function somePlugin_admin() { <img src="http://www.syntaxbytes.com/pluginimages/feature3.png"/> } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Parse Error’ is closed to new replies.