Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How do I sort a custom post type admin column using two meta keys?

Store the date time as a single key in the format yyyy-mm-dd hh:mm:ss.

Related Posts:

  1. Can the Next/Prev Post links be ordered by menu order or by a meta key?
  2. How do I set the default admin sort order for a custom post type to a custom column?
  3. Make custom column sortable
  4. Custom sortable columns ordered by meta-value?
  5. Column sorting with emtpy meta values
  6. Add Post Url to Manage Edit Screen
  7. Order a custom post type admin screen by a second custom post type title
  8. Make a custom column sortable by a value from a different custom post type
  9. Sorting custom post types in edit.php : Post disappear
  10. How to sort by multiple values in a nested WP_Query
  11. Make custom post type column sortable
  12. List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
  13. Remove Post Custom Meta Box
  14. Can’t publish custom post type – “You are not allowed to edit this post.”
  15. Custom fields for custom post type
  16. Show future events based on custom field AND order by date
  17. How to sort posts in a custom post type by title in ascending order by default?
  18. Meta Data for Custom Post Type not saving
  19. Using preg_replace to filter custom textarea
  20. Check if post with same meta value exists
  21. Filter date from post meta when date is in string format
  22. 4 column-loop ordered alphabetically with entries grouped (and labeled) by their first letter
  23. Get only used meta_values
  24. If Post Meta Equals Current Title Conditional Advanced Custom Fields
  25. sort post types by amount of views
  26. Is there a way to exclude posts based on meta_values?
  27. Do posts, pages and / or custom post type objects have unique ID numbers or can there be multiple objects with the same IDs?
  28. Archieve.php not loading for custom post type
  29. Custom post type sorting: alphabetical order
  30. Submitting Custom Post Types with custom fields from Front-end form
  31. Sort a custom post with ACF: Date Picker & Display Featured!
  32. create custom meta box with default value
  33. Custom columns doesn’t appear in custom post type
  34. How can I use this code on a custom database table?
  35. Get $post->ID from a URL
  36. Displaying a div from an assigned meta_value when on a page
  37. Meta data (Tags and Categories) for Custom Posts not showing.
  38. Display different information of a custom post type
  39. Create Array from custom post type to display a slider
  40. Setting Post Title via Meta Data returns Auto-draft
  41. How to Echo Metadata Value in Currency Format
  42. Issue on Working with Metabox – Checkbox to enable Sale Items
  43. Filter posts by tax (dropdown) and meta value
  44. delete_post_meta() for whole CPT / multiple posts?
  45. Sortable column containing numeric values for Custom Post Type at WordPress Backend
  46. How to get specific post meta by title or id
  47. Publish and save specific postmeta to a filtered post_type
  48. Problem with $post_id object’s property
  49. Pods CMS: How to add custom column to Adnvanced Content Type
  50. How to move a post to different post type with all meta data?
  51. Why do I have to press the “Update” button twice to save my meta box values?
  52. How can I display a drop-down select of Post Names
  53. CPT Columns doesn’t show categories
  54. how to show records that don’t have custom meta value
  55. Custom Post Type page sorts differently on different environments
  56. WP API Response does not show my registered metadata
  57. How to detect that the save_post hook is calling the callback associated to the current edit post page only
  58. $post->post_meta not pulling any post in wordpress/php
  59. Values from meta-box not on $_POST
  60. Getting post attchment URL to populate a CPT Admin Page Column
  61. Sort custom post type by most current date picker
  62. WP_Query of custom post type sorted by meta_key has unexpected results
  63. Returning a custom content types with meta values
  64. Custom post type suddenly stoped working after WordPress 5 update
  65. Batch Extract Date from post title and put into ACF custom field
  66. copy images from custom field to another custom field
  67. Creating a “glossary” of WordPress posts of a specific post type
  68. How to show custom field on specific custom post type posts only when filled
  69. How to handle this specific case of custom post type?
  70. Custom Columns for Custom Post Type Manager
  71. Save CTP post meta different values each day without overwriting previous values
  72. get_post_meta returns NULL in front-end, but correct result in back-end
  73. Cannot obtain custom meta information
  74. Problem with adding custom post type meta to header by plugin
  75. is_main_query() never called on WP 4.4
  76. Sort results without WP_QUERY?
  77. How can I output WPAlchemy repeating fields meta values in my page template?
  78. Meta box data is saved but NOT displayed in the meta box text field. Why?
  79. How to call a post’s metadata in shortcode.php?
  80. Save Metabox Custom Field Value
  81. Echo custom post meta from options array
  82. Value of post meta dropdown is not showing in WordPress
  83. Meta box data not saving
  84. Get all metadata for a given custom post type
  85. WP_Meta_Query object with conditionals
  86. Trying to write shortcode with get_post_meta but isn’t working
  87. sort by name (slug) custom post type
  88. Related posts meta_query CPT
  89. Meta box with front-end styling
  90. Sanitaizing Select Optin For Custom Post Type Metabox in WP
  91. How can I get some of a posts meta data whilst it is still inserting?
  92. Sort column on meta key and meta value
  93. How to retrive Custom Post Type Meta Fields in Custom WP_Query
  94. Advanced custom field – posted fields from custom post type
  95. Cannot Save MetaBox Data in Custom Post Type
  96. delete duplicate meta_value with same post_id
  97. HM CMB: Post Select Field for CPT ID
  98. Search CPT Title AND Meta
  99. Getting WordPress to store 0 values for custom post type meta
  100. updating one custom meta field only
Categories custom-post-types Tags columns, custom-post-types, post-meta, sort
Can you ungroup Custom Fields?
Job of meta_key meta_value fields in database tables

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress