Try to use below filter in your theme file.
function orderby_date( $orderby, $query ) {
global $wpdb;
return str_replace( "{$wpdb->posts}.post_date", "CAST({$wpdb->posts}.post_date AS DATE)", $orderby );
}
add_filter( 'posts_orderby', 'orderby_date', 10, 2 );
Related Posts:
- How to get current page ID outside the loop?
- Get the content of a specific page (by ID)
- How to give paged links custom title?
- Show Default Editor on Blog Page ( Administration Panel )
- Create pages automatically if they don’t exist
- Order by menu_order and title?
- WP Page and Subdirectory with same name
- How to redirect on particular page in wordpress? [closed]
- Internal Links to Pages in PHP?
- How to inject custom url path for page ?
- Restrict acceess of a page in backend
- How to display page title+link of page created by user
- WordPress twenty eleven sidebar on Pages
- Debugging shortcode problems
- How to disable Page Attributes dropdown in wp-admin
- How to show updated edit on preview URL without clicking preview button
- The entire content of my WordPress page has disappeared
- How to redirect a page to subdomain?
- How can I have two content titles?
- Get the Page Content,without generating HTML
- How can I split long posts into pages?
- Slug is redirecting to 404
- Include content from one page to another
- Can I include Javascript/jQuery in a page?
- conditional tags- how to use with shortcodes
- List all private pages user has access rights to read
- “next page” of parent in infinite loop
- Access the same page from multiple urls (wildcard)
- How to update the counter of private pages in the dashboard?
- Any Ideas for Including “More Tag” with get_pages($args)?
- Using in-build Visual Composer param types in custom param types
- Google Analytics tracking code on just one page?
- Layout Builder.
- Edit custom HTML page from WP admin dashboard
- get_pages() as per custom menu order
- Pass data from one page to anothe file/page in wordpress
- Display child pages in sidebar of parent page in wordpress
- Display child pages in a parent page? [closed]
- How to use is_admin in page content?
- Adding a Calculator to a WordPress Page
- Why isn’t WordPress respecting my HTML?
- From a developer’s point of view what are the differences between pages and posts? [closed]
- Edit page shown after login in WordPress?
- invalid argument in foreach when trying to list custom post types in archive.php
- Page titles for internal classification of landing pages
- Function to incorporate an option in each Page
- WordPress page not taking precedence over server directory
- Displaying direct children of other pages on homepage
- How to bypass 404 for certain pages/posts?
- Displaying Current Page Number Conditionally
- Multiple Loops That Pull Pages (Child/Grandchild) While Styling the First Entry
- page template – undefined structure in source code
- How to show page title with capitalization only as I typed in?
- Create custom page to author.php
- Make Audio Element Persistent Across Pages
- My site does not load but downloads a file (wordpress)
- what does the symbol “?” mean and how can i edit that page?
- Show children connected to parent pages
- How to get an array of pages ID by some page’s slug and all its children pages in get_posts() function?
- Restrict specific private page to a specific user
- How to remove a page in its entirety
- Set different heights per screen size with inline styles CSS into the ‘Text’ section of a Page
- Editing Pages Icons Are Not Showing Up – Why is this happening?
- Some pages can’t be updated – post_content field not updating
- How to add custom php file to right sidebar?
- Why my home page doesnt work?
- Mailchimp RSS feed work with single wordpress page?
- Cannot pull WYSIWYG content
- How can I change the background color of a contact box? [closed]
- Creating content using wp-admin pages
- change page status with code
- Press This for Page
- Supress listing of virtual pages
- How to limit the pages shown in the page manager to those created by the logged in user?
- Is it better to set social media sharer in entry-footer.php or comments.php in WordPress blog?
- Get All Pages as strings in array
- Attach link to pages accoding to tags
- Search Page: activate html code if the tag is on the page
- New page has incorrect URL
- Issue with page not erasing
- My page won’t publish
- Separate Editing from Publishing for pages
- Call a function on every wordpress pages only
- Echo page path suffix only – not the title, path or permalink
- Why does the default Insert/edit link function in Visual mode in posts or pages produce full urls?
- Custom admin menu for a selection of pages
- how to print the content of pages inside the front end area
- How do I make just one of my pages a Blog Page?
- Standard way of creating profile pages with custom content for each user?
- How to show parent pages on a specific page if user is logged in?
- How to add or remove metabox each page separately?
- Retrieve page content and pass to PHP?
- How to make in post Parent page children page list nummbered
- Get moderation notifications on one post only
- Advanced Multi Tier Navigation across columns
- How To Display Pages Based On Subscriber Signup Date
- How to preview a page instead of a category?
- wordpress user profile page
- WordPress is picking up links that don’t exist
- Fresh WordPress installation not able to simply show page content