Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customizing event listening widget #1650

Open
egncln opened this issue Mar 20, 2024 · 1 comment
Open

customizing event listening widget #1650

egncln opened this issue Mar 20, 2024 · 1 comment
Assignees
Labels
Issue Resolved Fixed the issue by developer
Milestone

Comments

@egncln
Copy link

egncln commented Mar 20, 2024

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

@ashokdudhat ashokdudhat added the Bug Something isn't working label Mar 21, 2024
@ashokdudhat ashokdudhat added this to the 3.1.44 milestone Mar 21, 2024
@live-aamir
Copy link
Contributor

live-aamir commented Jun 10, 2024

@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 live-aamir assigned egncln and unassigned live-aamir Jun 10, 2024
@live-aamir live-aamir added Issue Resolved Fixed the issue by developer and removed Bug Something isn't working labels Jun 10, 2024
@mistry-jignesh mistry-jignesh modified the milestones: 3.1.44, 3.1.45 Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue Resolved Fixed the issue by developer
Projects
None yet
Development

No branches or pull requests

4 participants