Title: Feature image *required*
Last modified: August 21, 2016

---

# Feature image *required*

 *  Resolved [Adonismoet1608](https://wordpress.org/support/users/adonismoet1608/)
 * (@adonismoet1608)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/feature-image-required/)
 * How to make feature Image Required
 * [https://wordpress.org/plugins/wp-user-frontend/](https://wordpress.org/plugins/wp-user-frontend/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [Adonismoet1608](https://wordpress.org/support/users/adonismoet1608/)
 * (@adonismoet1608)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/feature-image-required/#post-4664969)
 * Is there a way to use the tiny rich text area without the add media function
 *  [R.F.](https://wordpress.org/support/users/rf-1/)
 * (@rf-1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/feature-image-required/#post-4665116)
 * Hello
 * In the wpuf-add-post.php
 * SEARCH
 *     ```
       //validate cat
               if ( wpuf_get_option( 'allow_cats', 'wpuf_frontend_posting', 'on' ) == 'on' ) {
                   $cat_type = wpuf_get_option( 'cat_type', 'wpuf_frontend_posting', 'normal' );
                   if ( !isset( $_POST['category'] ) ) {
                       $errors[] = __( 'Bitte wähle mindestens eine Kategorie!', 'wpuf' );
                   } else if ( $cat_type == 'normal' && $_POST['category'][0] == '-1' ) {
                       $errors[] = __( 'Bitte wähle mindestens eine Kategorie!', 'wpuf' );
                   } else {
                       if ( count( $_POST['category'] ) < 1 ) {
                           $errors[] = __( 'Bitte wähle mindestens eine Kategorie!', 'wpuf' );
                       }
                   }
               }
       ```
   
 * After Add
 *     ```
       //Begin Require an  featured image  upload
               function my_featured_image_validation($errors) {
               if ( empty($_POST['wpuf_featured_img']) ) {
               $errors[] = __( 'Please upload a Image', 'wpuf' );
               }
                return $errors;
               }
               add_filter( 'wpuf_add_post_validation', 'my_featured_image_validation');
       		//End Require an  featured image  upload
       ```
   
 * SEARCH
 * `<div id="wpuf-ft-upload-container">`
 * BEVOR ADD
    `<span class="required">*</span></label>`
 *  Thread Starter [Adonismoet1608](https://wordpress.org/support/users/adonismoet1608/)
 * (@adonismoet1608)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/feature-image-required/#post-4665180)
 * it required users from posting without but it also showed a lot of code on the
   screen once user tried to upload with the image. how to correct that issue
 *  Thread Starter [Adonismoet1608](https://wordpress.org/support/users/adonismoet1608/)
 * (@adonismoet1608)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/feature-image-required/#post-4665181)
 * It stopped users from posting without adding a feature image but it also shows
   a lot of code on the page if the user tried submitting without posting a image.
   how to fix that?
 *  [R.F.](https://wordpress.org/support/users/rf-1/)
 * (@rf-1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/feature-image-required/#post-4665186)
 * Hello
 * > it required users from posting without but it also showed a lot of code on 
   > the screen once user tried to upload with the image. how to correct that issue
 * SEARCH in wpuf-add-post.php
 *     ```
       function submit_post() {
               global $userdata;
   
               $errors = array();
   
               var_dump( $_POST );
       ```
   
 * REPLACE WITH
 *     ```
       function submit_post() {
               global $userdata;
   
               $errors = array();
   
               //var_dump( $_POST );
       ```
   
 *  Thread Starter [Adonismoet1608](https://wordpress.org/support/users/adonismoet1608/)
 * (@adonismoet1608)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/feature-image-required/#post-4665259)
 * hey bro sry for the super late reply but i just did as you instructed
 * and it work you are awesome capital A
 *  Thread Starter [Adonismoet1608](https://wordpress.org/support/users/adonismoet1608/)
 * (@adonismoet1608)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/feature-image-required/#post-4665260)
 * hey sorry for the super late reply but i just did what your instructed and it
   worked youre awesome capital A
 *  [Phil Meyer](https://wordpress.org/support/users/philmeyer/)
 * (@philmeyer)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/feature-image-required/#post-4665300)
 * Even easier: Under custom CSS codes add the following:
 *     ```
       .wp-media-buttons {
       	display: none !important;
       }
       ```
   

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Feature image *required*’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-frontend/assets/icon-256x256.gif?rev=2818776)
 * [User Frontend: AI Powered Frontend Posting, User Directory, Profile, Membership & User Registration](https://wordpress.org/plugins/wp-user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-frontend/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Phil Meyer](https://wordpress.org/support/users/philmeyer/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/feature-image-required/#post-4665300)
 * Status: resolved