Make "Title" field optional

This topic contains 4 replies, has 2 voices, and was last updated by  Paolo 8 years, 12 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #34480

    Y A
    Expired Member
    Post count: 156

    Hi,
    I would like to rely solely on the address, and not use the “Title” at all.
    Is there a way of either:
    a) making the “title” field optional
    or
    b) automatically copying the address field into the title ?

    #34485

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the title is a mandatory element of a wordpress post of any kind. Can’t really be blank as it’s also what creates the URL.

    hiding the field and automatically copying the address field in the title can probably be done with jQuery, but that would require a customization.

    Thanks

    #34522

    Y A
    Expired Member
    Post count: 156

    Thanks for the info !

    #44194

    Y A
    Expired Member
    Post count: 156

    Here is the customization in case anyone needs the same thing:

    
    
    
    jQuery(document).ready(function($){
        $(document).on('submit','#propertyform',function(){
        $("#post_title").val($("#post_address").val()+", "+$("#post_city").val()+", "+$("#post_region").val()+", "+$("#post_zip").val());
        });
    });
    
    #44197

    Paolo
    Site Admin
    Post count: 31206

    Thanks for sharing! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket