I’m using these args with the intention of showing posts from a custom post type (clothing):

$args = array(
    'meta_query' => array(
            'key'     => 'type',
            'value'   => 'shoes',
            'type'    => 'char',
            'compare' => '='
    'numberposts'   => -1,
    'post_status'   => 'publish',
    'post_type'     => 'clothing'

This works fine, but what I want to do is limit the query to posts that were created today only. Is this possible?

Read more here: Limit query to current day


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: