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_calendarfilter. - 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 does on() in JavaScript do?
- Jquery .on(‘scroll’) not firing the event while scrolling
- How to block until an event is fired in c#
- jQuery multiple events to trigger the same function
- onKeyDown event not working on divs in React
- Why onbeforeunload event is not firing
- WordPress Media Uploader events
- trigger save_post event programmatically
- Only Showing Upcoming Events
- How to create collections that are edited in admin?
- All-in-One Event Calendar: Custom Query – Getting each event Instance [closed]
- Is there a WordPress Event Manager that links with your user database?
- How to trap “Publish” button to check for meta box validation?
- sort events based on event date custom field
- Archive by custom post type and custom date field
- Conference ticketing and seating module for WordPress [closed]
- Plugin allowing for artists, events and venues
- Looking for a subscriber list management system
- Why is wp-cron only executing on page visit?
- How to select events within current week using wp_query
- Plugin: Events Manager – Search by start date only
- How to display upcoming events by dat with Modern Events Calendar Lite
- Display posts with a start OR end date later than current date
- Events Plugin that works with existing categories?
- How to order posts by one custom field and filter them by another one?
- WordPress Google Calendar Oath 404
- List of JS Events for Widgets?
- How can I display my custom posts type in a monthly calendar view?
- Creating a Custom Post Type and Joining with Users
- Can’t access site after plugin activation
- Issue with wp_schedule_event()
- FYI: How to make Time.ly all-in-one event calendar mobile friendly [closed]
- sort and display posts by custom field (wp-query and the loop))
- How to Configure Events List in WordPress to Disappear Event Once Date is Past
- Change WordPress custom field default calendar [closed]
- Should i use a plugin for Event Manager or code my own needs? [closed]
- WooCommerce event works in jQuery but not in JavaScript
- display future posts in date page
- Change post date format to hebrew calendar
- List of Events with Multiple Dates: Only NEXT Date
- Update Post Taxonomy Automatically Based On Date
- Order posts of a custom post type by the event date using FT Calendar Plugin
- how to compare different timestamps in wp-query for events custom post types?
- Creating an Events Feed with Sub Pages/Posts for Each Event
- Plug-in for reserving rooms or equipment via corporate intranet
- Membership & Event Registration/Management plus-ins for non-profit [closed]
- Can’t see past events on admin dashboard
- Is there a way to know when a page has been updated and do some action only once?
- I’m needing to figure out how to create a page that user could create a “task” and it be selectable on a form
- profile_update hook does not fire from front-end
- Permalinks don’t update nor link properly
- EventON – Dequeue Styles
- Calendar month navigation in Ajax only working once
- How to populate a Mailchimp newsletter with latest events from WordPress plugin EventOn?
- Hourly events don’t get triggered
- DOM reference to TinyMCE editor element (button)
- date archive future posts
- Events with multiple event dates + permalink for each date
- Help with query function get_calendar()
- Sorting meta box values by start- and enddate and all dates in between
- Checking if field is set before comparing with meta_query in query_posts?
- Modify query after meta value
- Unable to sort wp_query by date/time with multiple meta_key s
- Count of posts with meta_key filled in?
- WP calendar summary attribute validation error
- A problem with date archives
- How to include support for all page types, calendar urls, archive, etc
- WP FullCalendar Image Thumbs on Full Calendar [closed]
- Custom booking form field not saving
- How to write a plugin that “listens” every time, an edit occurs?
- What would be the optimal CPT / Taxonomy design for the following entities structure
- I am trying to implement some logic on real time order sync using scheduler
- Help with adding fullcalendar.io to a WordPress page