you can also store it like yyyy-mm-dd and and use
$date_array = explode( '-', $date_string );
to make it into an easy to manage array. or even better change it into a unix timestamp with
$unix_time = strtotime( $date_string );
php loves to work with unix time stamps, it’s the native format.
and when you’re ready to store the value again in the meta field use this to get the proper format again
$date_string = date( 'Y-m-d', $unix_time );
Related Posts:
- query posts in wordpress
- posts_nav_link(); not showing up on static pages
- Get list of months with posts
- Why is the first query affecting the second query, even after wp_reset_query() and wp_reset_postdata(), but not on the second page?
- Custom URL parameters in template files
- Metadata Query when storing data as array possible?
- Keep sticky posts out of query unless they have featured image
- How to query the latest 5 posts and sort them by title?
- 2 loops, is_home won’t work, count is off
- How can I prevent posts with no title showing up in my query?
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- CSS class on last post in loop ( custom query )
- Custom Post Type Query issue
- How to create query to get top 3 sticky/latest posts
- WP_Query not getting all posts, just tagged posts
- tag__in does not return posts
- View list of all attachments on site
- multiple queries to get posts from same category?
- Best practice for implementing a blog page / section in wp_menu_nav()
- Not the typical order by posts by date question
- Paginated WP_Query doesn’t return 404’s, even when posts don’t exist
- issue displaying variations in custom template using WPeC 3.8.9.2
- How Do I Protect My Premium WordPress App Theme from Copying?
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- When to use _e and __ for the translation?
- Get entered value of customiser field for live preview
- With WordPress themes, where do I store the images and files relatively?
- How to Include SVG sprites icons into the body tag? [closed]
- Why doesn’t /2013/01/ properly return January’s archives in archive.php?
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- Child Theme not loading parent CSS
- WordPress settings API error when checkbox unchecked
- How the WordPress sidebar works
- Replace Home with image link inside custom header menu
- Separated Comment from Post
- WordPress website loads but is not displayed until page scrolled
- wp_head() not inserting the default stylesheet style.css
- Theme Customizer not loading
- WordPress Customizer Control with React
- File Security Check in wordpress in index.php of theme
- Is my approach to enqueue styles inefficient?
- How do the default themes reference style.css?
- Input ordering in wordpress theme customizer
- Customize the previous_post_link output
- Which file handles the block latest posts, I want to examine excerpt handling
- Menu item added in wp_nav_menu_items filter is never highlighted
- How do i make a custom section’s setting display the default value in Customizer?
- Warning: A non-numeric value encountered in theme functions.php
- In this snippet how do I force the function to use gravatar rated G and fill in the alt for get_avatar()?
- “Add A Widget” button in the Customizer
- loading blank white screen of slide
- Set parent theme language with custom .mo files
- WooCommerce: multiple input field for multiple product variations
- Change template if tag selected
- Overide enqueue in non plugable function via child theme
- Starting point for custom Themes [closed]
- Which cache is kicking
- How do I merge 2 WordPress Themes?
- Load different single.php templates according to post layout selection
- Full width featured thumbnail
- Is there a way to switch to another theme?
- Right procedure when you develop a WP Website for a client
- Different themes on one site
- // File Security Check from WooCommerce [duplicate]
- Allow different tags in widget titles
- Site returns a 500 Internal server error
- Switch theme if ie compatibility/quirks mode?
- Pagination and multiple loops
- Does wordpress add their own classes into nav menus?
- Changing background color depending on parent page?
- Available widgets is not showing up?
- Getting white screen of death on category pages because of body_class() function
- WordPress link to another page in site does not render a
- Developing WordPress site behind a static site
- Problem with Displaying Custom Theme Page’s Content
- Code showing in wordpress post titles around website
- HTML to → WP Conversion
- Add multiple sections, settings and controls at once to the Customizer
- Font not loading [closed]
- How to change parent permalink?
- how to call options on front end and add logo
- Adding a Class to an Getting From Post Content
- Loop carousel slider in wordpress
- Editable screenshot.png in a custom theme developed
- How to create multiple pages in a client theme?
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- Sorting Posts with meta value not working
- get_theme_mod not pulling css colors into header using wp_head
- Duplicate WordPress site to subdirectory but use same db?
- Menu order of parent menu from perspective of child menu
- Conditional loop based on current page
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- wp_deregister_script was called incorrectly
- Undefined index: debuging error for theme option template snippet
- custom theme’s search not working
- Permalinks problem with custom theme
- Purchased Theme to Custom Made Theme? [closed]
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- Variable ++ in query loop
- WordPress Two Level Filters on Getting Custom Taxonomy Terms