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
- What is the maximum number of weekdays in a year? How would you code it?
- What does on() in JavaScript do?
- Javascript removeEventListener not working
- Jquery .on(‘scroll’) not firing the event while scrolling
- How to block until an event is fired in c#
- How to handle a Button click event
- jQuery multiple events to trigger the same function
- onKeyDown event not working on divs in React
- Fire oninput event with jQuery
- “The Events Calendar” plugin by Modern Tribe in WordPress not working
- trigger save_post event programmatically
- How to capture the selection:toggle event fired by wp.media
- How to create collections that are edited in admin?
- How Do I Make WordPress Run an Event Every Day?
- How to trap “Publish” button to check for meta box validation?
- sort events based on event date custom field
- How can I invoke an action after a CiviCRM triggering event?
- Suggestion for Calendar of Events Plugin [closed]
- WordPress Plugin for One-Time Event Registration? [closed]
- How to use get_categories() with Event Organiser plugin
- javascript is not working on Event Submission?
- 1 day after custom date change post status to draft
- Looking for a subscriber list management system
- Trigger background job using AJAX
- RSVP form for Facebook events from a WordPress post?
- Save metadata as a timestamp, display as a “pretty” date
- Sorting WordPress Posts via Custom Field Values?
- WordPress Scheduled Event Request Blocking
- scrolltop always 0, can’t trigger script
- Display posts with a start OR end date later than current date
- Events Plugin that works with existing categories?
- WordPress Google Calendar Oath 404
- List of JS Events for Widgets?
- Update a costume wp_usermeta key back to 0 every 24hours (time can be specified as needed)
- How can I display my custom posts type in a monthly calendar view?
- How to reorder and display a feed to be chronological?
- Keyup events in tinymce editor not working
- Pass argument to event hook
- Show only the future event (Advanced Custom Fields)
- Issue with wp_schedule_event()
- Catching Gutenberg sidebar switch event
- Sort custom post type by most current date picker
- Storing temporary data for a custom post type
- Need to have an archive widget which organizes and displays a custom post type using a custom date field
- shortcode – I need to throw a message or load a different page
- How to add Ajax to the default widget calendar to support next/previous months loading?
- All in one calendar custom post type query doesnt work as expected
- Twenty Twelve Calender Widget post titles creating disturbance
- Display upcoming events in the next 30 days by querying posts with timestamp in custom meta
- Post type to calendar
- AJAX calendar navigation returns -1
- Plugin to display weekly schedule that can be edited via admin panel
- How to display a calendar with events depending on the user?
- Ordering of posts, 2020 Year showing as next event when should be last
- Changing link format from Calendar widget
- How do I add this OnClick event script to a custom button I’ve created?
- Execute jQuery with custom event listener after successfully add an item to the cart
- Display only upcoming events / Show all events when archive year is selected
- How to populate a Mailchimp newsletter with latest events from WordPress plugin EventOn?
- connect users to Custom post types
- Create a new post on a specified publish date via link?
- Asynchronous emailing
- Admin – Search Events by a custom field
- Add role privileges of the custom post type
- Sorting meta box values by start- and enddate and all dates in between
- WP Calendar Shortcode not working on my theme
- Listing future posts together with normal posts
- Count of posts with meta_key filled in?
- Display content based on an event
- Plugin for Marathon Running Event Management [closed]
- WPML & Events Manager translatable fields after duplication
- Can a woocommerce hook alter the UI of a website?
- How to print different informations for different post types inside The Loop?