wp-event-manager icon indicating copy to clipboard operation
wp-event-manager copied to clipboard

customizing event listening widget

Open egncln opened this issue 11 months ago • 1 comments

hi, i'm trying to customize the widget adding and displaying my custom field on each single event, like "event type", "start time", etc,... like these screenshots. Where are functions to make it?

how can i do it? custom fields view

thx

egncln avatar Mar 20 '24 11:03 egncln

@egncln you need to customize "content-event_listing.php" file in plugin or override the template in your theme using this link. To get the value of the addtional field use get_post_meta( $post->ID, your_meta_key_under_meta_key_heading, true ) on the template file where you want to show it.

Note: The addtional field will be appear on event detail page. To hide use the following function in your theme function.php file:

add_filter( 'event_manager_show_additional_details_fields', 'hide_additional_field' );

function hide_additional_field($additional_fields){

	 unset($additional_fields['your_field_name']);

	return $additional_fields;	

}

live-aamir avatar Jun 10 '24 11:06 live-aamir

No update has been provided from the client side. So we are closing this issue.

mistry-jignesh avatar Jul 31 '24 09:07 mistry-jignesh