Query String for the WP_QUERY parameters
I don't know how to turn some WP QUERY parameters into url query strings. Most of them are straight forward, but there are some I don't know how to get working. For example, for these WP_QUERY parameters:
$args = array(
'post_type' = 'post',
's' = 'keyword',
);
the query string for this is: ?s=keywordpost_type=post
What is the query string for the 'after' parameter with value '24 hours ago'. For example, this WP_QUERY gets posts created in the last 24 hours:
$args = array(
'date_query' = array(
array(
'after' = '24 hours ago',
),
),
);
But I don't know the query string for it. This doesn't work:
?after=24%20hours%20ago
Any help appreciated.
Topic query-string query Wordpress
Category Web