• Resolved atharalikhichi

    (@atharalikhichi)


    Hi,

    I am unable to change the event field type. When I add following function, instead of modifying the field type, it creates another field having no title etc:

    function changing_URL_field_types ( $fields ) {
    	
    	$fields['event']['organizer_facebook']['type'] = 'url';
    	return $fields;
    }
    
    add_filter( 'submit_event_form_fields', 'changing_URL_field_types' );

    Please let me know where I am going wrong.

    PS. I am successfully able to modify other things like placeholder, title etc. This issue is only occurring if I am changing the field type.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ashok Dudhat

    (@ashokdudhat)

    Hi,

    Url type is not exist. it will text. not url

    $fields[‘event’][‘organizer_facebook’][‘type’] = ‘text’;

    I hope that it will clear you question.

    Thanks

    Thread Starter atharalikhichi

    (@atharalikhichi)

    I have defined / added my own field type that is url. It works absolutely fine if I directly change it in your plugin code by replacing text with url but not working by applying filters.

    Plugin Author Ashok Dudhat

    (@ashokdudhat)

    Hi,

    There is no any form fields like Url. I mean There are no any form controls like Url ( same like textbox, checkbox, radio etc ) so it is not possible to set in core.

    Regards

    How to remove Search functionality all field from event page ..
    like location, keyword,any date all the field

    how to add event in archive …all event show in archive year wise…. like post archive

    please help..

    thank you

    Hitesh Makvana

    (@hiteshmakvana)

    Hi Anil,
    You can remove search filters via overriding template file event-filters.php to the theme side.
    Please check below link to override template files of plugin.
    https://www.wp-eventmanager.com/documentation/template-files-override/

    To make all events archive you need to do via theme side template customization.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unable to change Field Type’ is closed to new replies.