Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

et3ishak on "Parse Error"

$
0
0

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 all articles
Browse latest Browse all 26892

Trending Articles