meta_key
value should be name of custom field. I doubt you have fields named after each month, so it’s likely should be eventdate
.
meta_compare
should have value that specifies a comparison operator, or just be omitted and it will default to =
in that case.
From this you can’t really query full event date on equals condition to month alone. I am not sure but as I see it you will have either to add separate field for month/year (without day) or do much more complex query with posts_where
filter.
See Time Parameters, Custom Field Parameters in Codex for more documentation.
Related Posts:
- Add field to posts (checkbox) that only one post can have
- How can I manage my multiple wordpress websites from main website?
- Custom Queries – Child Categories not showing up
- How to find if a post with custom_field == X exists?
- Filter my home page posts by category or by tag
- Query posts by category AND custom field, then ORDERBY another custom field – help!
- How to get Related Custom Posts?
- wpdb custom tables without plugin
- My custom sql query for getting a username giving me a warning and an error
- dbDelta not creating tables with composite keys
- Custom SELECT Query With Multiple Meta Values (Ordering Problem)
- Applying WP-cli Search & Replace to Static SQL Dump File
- Make tag archive display post are ordered by post format
- saving the widgets position after drag and drop
- export and import wordpress customization
- Get All Results From Other Users That Share The Same Custom User Meta As Current User
- What is my error trying to create a new table in the database?
- Add commentmeta custom field to every published comment with SQL
- Custom MySQL query to list post
- Why doesn’t WP_Image_Editor save images using the Filesystem API?
- Custom ReCaptcha Login
- is_home() and is_single() Not Working as Expected with Custom Post Types?
- Win7 Dev Environment
- 2 seperate installation 1 theme same server
- Is there a way to integrate WordPress within an existing PHP Framework, CMS, and Navigation system?
- No option to add a ‘featured image’ in my wordpress installation
- Friendica integration using wordpress authentication
- Post format selector in Thematic child theme post class
- WordPress in “Couch Mode”?
- Combine multiple words in custom meta search query
- Get multiple db prefix with $wpdb
- Importing media medium setting image gallery / image attachments
- How do I remove the eye icon that shows visibility on login screen and reset password screen
- Could not create directory. /var/www/html/wp-content/plugins/PLUGIN_NAME/
- Unique User Account Number + Displayed Via Shortcode
- How can I add Google’s reCaptcha to Divi’s contact form module? [closed]
- How do I copy all “extra” data (menus, widgets, etc) from one theme to another?
- How to add more than one RSS Feed Link for wordpress
- Create default_content layout template based on post id
- Remove ability to Permanently delete an image from the Media Library
- Adding a login form that concatenates three fields into a username
- Moving from development while pulling production database without overwriting, to production
- Ability to only view (not edit) other user’s personal profile information
- Fastest way to get the comment and ping total count for a post
- Is it possible to add a ribbon in the background of h1 on every page?
- How to add textarea field to taxonomy (tag)?
- changing font size and font of a custom message added after comment
- Custom wp-content and upload directory
- Lost password empty field error redirect to custom login
- Custom comments list, right depth
- Order posts with a custom field but also without
- WordPress Custom File Permalink
- WordPress 3.0.1 on IIS 6 Web Server PermaLink Issues
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- how to display a specific wordpress menu?
- User bar above logotipo?
- Create a url structure for my blogs based on categories and sub-cats
- Change Notice of Password change email subject?
- Deleting my old WordPress site. – issues
- Dynamically Filtering Posts by Data Points – Any Pointers?
- Woocommerce custom checkout form
- Remove year from title
- Custom Tags Archive – permalinks not working
- How to append custom text to the output of ‘categories widget’?
- How to assign a custom post title to be the post ID?
- Creating custom page template
- Which delete query is better with prepare or delete
- Change Site Logo or Menu Logo Per Page
- How to add page content into another page
- How do I query based on the modified date?
- Remove Sidebars from page
- Hook before user is created and make some custom validation
- How can Use custom input field in functions.php page?
- ACF unable to use user field
- Show products per page drop down
- Change HTML markup on blog post
- When developing WordPress plugin, is it a good idea to create my class object by hooking to existing class constructor?
- Static Page, need Last and Next links at the bottom
- Client viewing before deployment
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- How to use a custom playlist template:
- Run a welcome tour after multisite creation?
- Multisite – Getting Meta query to select from wp_2 tables
- How to compare number with id of post in certain category
- WordPress Inline Style missing
- Need to over ride a !important from the index file
- how to hard link to the posts page?
- Make User Role a Filter
- Creating a search with tag variable also added for more detailed results
- Show WP content on different PHP Sites
- Is there os native application for wordpress?
- Template setting is not saving in wordpress
- How to keep the /blog slug even in single post slug
- Modifying a local template
- Create a custom search for Estate Agency WordPress site
- Changing displayed photo when shared via facebook
- WP is easy, The client has to learn it, So what do i offer? [closed]
- How do I add custom CSS animations for specific Gutenberg blocks?
- Redirect all pages to the custom login page except for the registration page
- How to apply filters if editing specific template