Title: Default ad type.
Last modified: September 27, 2024

---

# Default ad type.

 *  Resolved [Houdini](https://wordpress.org/support/users/romariokg/)
 * (@romariokg)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/default-ad-type/)
 * Hello.
 * I have 3 types of ads on my website: Cars, trucks, all_auto.
 * On the ad form page, I need to select the default ad type as “all_auto”. how 
   can I do this?
 * So that users do not have to select this item every time.
 * What needs to be changed in this code so that the ad type is “all_auto” by default?
 *     ```wp-block-code
               <div class="form-group row">
                   <label for="rtcl-category"
                          class="col-md-2 col-form-label"><?php esc_html_e( 'Ad Type', 'clcar' ); ?>
                       <span class="require-star">*</span>
                   </label>
                   <div class="col-md-10">
                       <select class="rtcl-select2 form-control" id="rtcl-ad-type" name="type" required>
                           <option value=""><?php esc_html_e( "--Select a type--", "clcar" ) ?></option>
                           <?php
                           $types = Functions::get_listing_types();
                           if ( ! empty( $types ) ):
                               foreach ( $types as $type_id => $type ):
                                   $tSlt = $type_id == $selected_type ? ' selected' : '';
                                   echo "<option value='{$type_id}'{$tSlt}>" . esc_html( $type ) . "</option>";
                               endforeach;
                           endif;
                           ?>
                       </select>
                   </div>
               </div>
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Support [Muhammad Ali Akbar](https://wordpress.org/support/users/alireyad/)
 * (@alireyad)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/default-ad-type/#post-18046295)
 * Hi,
   Set this ‘all_auto’ type as selected for option attribute. I see you are 
   using our premium theme CLCar. You can create support ticket from our site, support
   team will help you to do it.
 * Thank you

Viewing 1 replies (of 1 total)

The topic ‘Default ad type.’ is closed to new replies.

 * ![](https://ps.w.org/classified-listing/assets/icon-256x256.gif?rev=3004059)
 * [Classified Listing – AI-Powered Classified ads & Business Directory Plugin](https://wordpress.org/plugins/classified-listing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/classified-listing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/classified-listing/)
 * [Active Topics](https://wordpress.org/support/plugin/classified-listing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/classified-listing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/classified-listing/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Muhammad Ali Akbar](https://wordpress.org/support/users/alireyad/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/default-ad-type/#post-18046295)
 * Status: resolved