WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
[resolved] Remove Description and Tags Boxes (10 posts)

  1. benlind
    Member
    Posted 2 years ago #

    Is there a way to have the plugin not display the post content/description box and the tags box? I am mainly using custom fields to drive my user editable posts, so I don't need those boxes. I don't see an option anywhere in the settings, so will I need to dive into the plugin code to do this?

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. Tareq Hasan
    Member
    Plugin Author

    Posted 2 years ago #

    There is option to enable/disable post tags. But removing description box, you need to edit the plugin.

  3. benlind
    Member
    Posted 2 years ago #

    Thanks. I ended up just editing the plugin code myself, though usually I try not to.

  4. twelve2395
    Member
    Posted 2 years ago #

    hi benlind, can you share how you edited the plugin to do this?

    Thanks!

  5. benlind
    Member
    Posted 2 years ago #

    twelve95, I have actually stopped using WP User Frontend in favor of another plugin that better covers my needs, but I'll try to give you an idea of how to remove the description box from the plugin.

    1. In the plugin directory, in the wpuf-add-post.php file, comment/remove the code around lines 106-118 — it should be an "li" tag containing the code for the description box. Make sure you don't remove either the preceding wpuf_build_custom_field_form line or the following do_action line.
    2. Find and comment/remove this code:

    if ( empty( $content ) ) {
            $errors[] = __( 'Empty post content', 'wpuf' );
        } else {
            $content = trim( $content );
        }

    It should be around lines 183-188 or so.

    I'm pretty sure that's all I did to remove the content box. Let me know if that works for you.

  6. peterjmag
    Member
    Posted 1 year ago #

    Hey benlind,

    What plugin are you using now? I've been looking for something with a bit more flexibility.

  7. luke
    Member
    Posted 1 year ago #

    Hi benlind,

    your fix worked fine, thanks a lot!

  8. codynew
    Member
    Posted 1 year ago #

    Hey benlind, could I ask what plugin you used instead of WP User Frontend?

  9. benlind
    Member
    Posted 1 year ago #

    If I remember correctly, the reason I was using this plugin in the first place was to allow users on my website to ask questions in the FAQ section, so I ended up going with the Q and A plugin. It's working great!

  10. Alfaz
    Member
    Posted 1 year ago #

    Is there any option for remove the registration section.
    I have installed the plugin it's work fine but i don't need to registration. If anyone have idea please help me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic