WordPress.org

Ready to get started?Download WordPress

Forums

Post-Form Alteration (3 posts)

  1. jjkilpatrick
    Member
    Posted 4 years ago #

    Hi all,

    I'm new to php and wordpress.

    I was wondering if it is possible to modify the post-form.php so that it will be displayed even for non-registered users. I'd also like anything entered in the form to go through to pending submissions.

    I know a solution is to use tdo mini-forms but I love the look of the post-form.

    Thanks

  2. ToreGu
    Member
    Posted 4 years ago #

    Hi!

    I can't help you that much but this is where you start to look:

    You open index.php in the theme, where the action starts.

    It says:

    if( current_user_can( 'publish_posts' ) ) require_once dirname( __FILE__ ) . '/post-form.php';

    You have to change this so that it's not an "if the current user can". If there's some function/code somewhere else in the wordpress universe that enables people to do anonymous blogging, that would be useful code for you.

    Good luck!

  3. whooami
    Member
    Posted 4 years ago #

    You have to change this so that it's not an "if the current user can".

    thats sooo not going to work, and any solution that involves modifying the way the backend works is soooo insecure.

    go with the option you dont like, modify that form so it looks like you want.

    trust us.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags