Hi i am writing a plugin for a contact form the problem is the shortcode where the form is output is being wrapped by <p> tags.
For instanace, if i have the following in the page content:
[contact_form id="1"]
And for example the plugin snipets are below:
<br />
add_action('wp_print_styles',array($this,'Styles'));<br />
add_action('wp_print_scripts',array($this,'Scripts'));<br />
add_shortcode('jformer', array($this,'jFormerHandler'));</p>
<p>function jFormerHandler($atts)<br />
{<br />
/*extract( shortcode_atts( array( 'id' => '0',), $atts ) );<br />
return "jFormer form ID: $id";<br />
}<br />
The HTML output will be wrapped in P tags as below.
This is causing a major problem for elements that i am outputting that are not supports to be wrapped inside inline elements.
<br />
<div class="entry"><br />
<p>jFormer form ID: </p><br />
</div><br />
Could you please advise how i can arrest the output of these tags for my plugin?
Thanks,
Chris
The blog I need help with is g18c.wordpress.com.