wpeventmanager / wp-event-manager

WP Event Manager is a lightweight, scalable and full-featured event management plugin for adding event listing functionality to your WordPress site. The shortcode lists all the events, it can work with any theme and is really easy to setup and customise.
https://wp-eventmanager.com
34 stars 50 forks source link

customizing event listening widget #1650

Closed egncln closed 3 months ago

egncln commented 8 months ago

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

live-aamir commented 5 months ago

@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;  

}
mistry-jignesh commented 3 months ago

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