Support » Plugins and Hacks » User Submitted Posts » I want to add some codes before and after textarea (content)

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jeff Starr

    (@specialk)


    Sure! Check out the file, /views/submission-form.php, which contains all the markup for the submission form. There you can make any edits as required.

    Actually I want to do like this.

    <img=”<textarea>(content)</textarea>”/>

    Plugin Author Jeff Starr

    (@specialk)


    Sorry, I still don’t understand.. I want to help, but cannot decipher the codes..

    Ok. I change “content” field to “img url” field in submission form. This field only for image url. After written and submit form I wantto show image on post. So I just want to when displaying post, I want to keep content between the tags(<img> – </img>). Hope I could tell. Thank you for your help.

    Plugin Author Jeff Starr

    (@specialk)


    So, something like this?

    <img src="<?php the_content(); ?>" />

    Yess. But that code doesn’t work. Do you know another way for do that?

    Plugin Author Jeff Starr

    (@specialk)


    It should work if the content is available and the code is included in the WP loop.. if not, where is it failing for you?

    I don’t know. Doesn’t showing image. I think there is “<p> </p>” codes in content.

    Plugin Author Jeff Starr

    (@specialk)


    Try adding to functions.php:

    remove_filter('the_content', 'wpautop');

    That will disable the auto-formatting (<p>‘s and such) in all content.

    Ok man thank you so much. You are interesting your plugin . You are the man. 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘I want to add some codes before and after textarea (content)’ is closed to new replies.