Need help? Check out our Support site, then

Writing Plugin Shortcode being wrapped by tags

  1. 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?



    The blog I need help with is

  2. We cannot do plugins here so we know nothing about them. You need to head over to the forums as that is where self-hosted wordpress blogs using the software from wordpress.ORG are supported.

    These forums are for those hosted here on the wordpress.COM free hosting service and things here work differently.

    If you are not familiar with the differences, see this support document.

Topic Closed

This topic has been closed to new replies.

About this Topic