I may be wrong but I don’t think you can modify the Calendar Widget at least not that easy as like passing a post type and a field to query for.
You have a few options:
- Create a Widget.
- Create a function like
get_calendar()
on line 1.406 on general-template.php file (wp 4) and pass it viaget_calendar
filter. - Install a plugin that offers an event post type with a calendar widget.
ps: don’t modify general-template.php is a bad practice and when wordpress gets updated you will loose all your modifications.
Read more about it:
- Using a different wordpress function instead of the default one
- Modify Native Calendar Widget for Event Post Types
If you have PHP and MySQL skills this should give you a starting point in how to solve this.
Sorry for bad english.
Related Posts:
- Looking for a simple calendar/events plugin [closed]
- Single Events as Sub-Page to Main Calendar Page
- Event Management plugin
- How to Create Events Calendar
- Post Terms As Class Name For Full Calendar Events
- How to represent “event” in a UML Class Diagram?
- How to test wp_cron?
- Recommendation for a WordPress Calendar Plugin with Recurring Events? [closed]
- Post date vs. event date in WordPress
- WP_Query meta_query results date by date
- Create a custom event post
- Calendar Solution: Handling upcoming Dates with Posts?
- how to set array of args for scheduled event?
- Events plugin for irregular / complex events [closed]
- How to get an event to fire using Google Tag Manager for the wordpress audio player?
- Event Organiser: Event list includes regular Posts & custom fields? [closed]
- Reverse order of events on homepage [closed]
- Update user meta after one hour
- When using Tribe Events Calendar, querying for a specific event category returns nothing
- Calendar for irregular recurring events [closed]
- Event booking form for wordpress
- Plugin: Events manager – Next and previous event
- Group the events post in month+year format?
- how can create carousel for posts that will be published a month later?
- Upcoming events
- Add option in th event calendar
- Include custom table in query
- Need to build a community membership and event/ticketing system
- Calculate business days
- What is the maximum number of weekdays in a year? How would you code it?
- jQuery equivalent of JavaScript’s addEventListener method
- What’s the difference between event.stopPropagation and event.preventDefault?
- How to set a timer in mysql
- What does on() in JavaScript do?
- Javascript removeEventListener not working
- Jquery .on(‘scroll’) not firing the event while scrolling
- How to use pygame.KEYDOWN to execute something every time through a loop while the key is held down?
- How to block until an event is fired in c#
- How to handle a Button click event
- Set Date in a single line
- jQuery multiple events to trigger the same function
- Creating a Calendar using javafx
- Angular 2 Hover event
- onKeyDown event not working on divs in React
- onclick event pass
- id or value
- Fire oninput event with jQuery
- Why onbeforeunload event is not firing
- How can I capture the right-click event in JavaScript?
- “The Events Calendar” plugin by Modern Tribe in WordPress not working
- WordPress: schedule multiple action hooks of the same name and time
- Free, editable calendar for WordPress site that using Elementor?
- How to run a function every 5 minutes?
- WP Cron Doesn’t Execute When Time Elapses
- WordPress Media Uploader events
- How to set a custom post type to have viewable future posts
- Scheduled events disappear from events queue
- trigger save_post event programmatically
- How to capture the selection:toggle event fired by wp.media
- Only Showing Upcoming Events
- how can I create a calendar for a cpt, using get_calendar or other
- How do I search events between two set dates inside WP?
- wp_schedule_event not working?
- Manipulate post category after time
- How to create collections that are edited in admin?
- All-in-One Event Calendar: Custom Query – Getting each event Instance [closed]
- How Do I Make WordPress Run an Event Every Day?
- Plugin for event management? [closed]
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- Custom Post Type “Event”: chronological list of recurring events
- The holy grail of Event Management Plugins? [closed]
- Is there a WordPress Event Manager that links with your user database?
- How to trap “Publish” button to check for meta box validation?
- Conference website with ticket-sales + sponsorship sales with WordPress?
- sort events based on event date custom field
- Archive by custom post type and custom date field
- Which file displays the date archive?
- Filtering more than one term in a taxonomy in WP
- How to hook some Unicode texts into calendar widget safely?
- How can I invoke an action after a CiviCRM triggering event?
- Conference ticketing and seating module for WordPress [closed]
- Suggestion for Calendar of Events Plugin [closed]
- WordPress Plugin for One-Time Event Registration? [closed]
- How to use get_categories() with Event Organiser plugin
- Short code for Venues
- Dynamic iCal generator outside/inside wordpress
- Event Calendar on hosted wordpress?
- javascript is not working on Event Submission?
- What is the Javascript event for an item being added to the cart in Woocommerce?
- Plugin allowing for artists, events and venues
- 1 day after custom date change post status to draft
- Custom Post Type Events Archive Grouped By Month
- Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
- Looking for a subscriber list management system
- Why is wp-cron only executing on page visit?
- How can I apply css styling to the current day in the calendar widget
- How to get a Jewish/English event calendar on a page in WordPress?
- Trigger background job using AJAX
- How to select events within current week using wp_query
- Plugin: Events Manager – Search by start date only
- RSVP form for Facebook events from a WordPress post?