WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Posthaste] Better way to use the form? (6 posts)

  1. houseofstrauss
    Member
    Posted 5 years ago #

    I would prefer that the plugin did NOT create a form in the index page by default. It would be better to have no form produced but instruct users to put <?php if(function_exists(posthasteForm)) { posthasteForm(); } ?> in a page/ post where you want it.

    1- create a new page template with the posthaste template inserted.
    2- use a php insert plugin like php exec.

    This would give much better control of placement

    http://wordpress.org/extend/plugins/posthaste/

  2. smajda
    Member
    Posted 5 years ago #

    If you comment out the action that places the form near the end of posthaste.php:

    add_action('loop_start', posthasteForm);

    Then you can do exactly that. (Your exact suggested code will work.)

    Btw, in the next version of Posthaste, I hope to include placement options, including manual placement.

  3. houseofstrauss
    Member
    Posted 5 years ago #

    Yep, I checked the source and that looks just right ... Thanks for the feedback smajda. In the next version, it might also be good to give options for which role can post. Ie subscribers, authors, etc...

    Thanks for a useful addition to wordpress... !

  4. Jason Pelker
    Member
    Posted 5 years ago #

    Is there any progress to the image functionality of this plugin?

  5. smajda
    Member
    Posted 5 years ago #

    @houseofstrauss: You could probably use one of the Role Manager plugins to allow subscribers to post.

    @jpelker: You mean integrating the full WP Media Library functionality into the plugin form? (Like on the Write page?) That's probably pretty low on my todo list...but I haven't thought about how to do it much.

  6. Jason Pelker
    Member
    Posted 5 years ago #

    @smajda: Maybe just a simple image link box, like the one in this text editor (as opposed to having to type out the html.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags