Reputation
Top tag
Next privilege 50 Rep.
Comment everywhere
Badges
7
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Feb
12
accepted Meta Query with date and time on the same Day before given time
Feb
6
revised Meta Query with date and time on the same Day before given time
added 126 characters in body
Feb
6
answered Meta Query with date and time on the same Day before given time
Feb
5
comment Meta Query with date and time on the same Day before given time
@Milo Can you make that comment to answer, please?
Feb
5
comment Meta Query with date and time on the same Day before given time
@Milo So the meta_query won't work, if data and time or stored as one record? I think it could make sense, to split them into two meta fields and extend the meta query, or run a mysql query directly and keep them in one field? Would you agree?
Feb
5
comment Meta Query with date and time on the same Day before given time
@Milo I did that. it did not help. This is the sql query, that runs (reduced) SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1 AND ( ( wp_postmeta.meta_key = 'event_start' AND CAST(wp_postmeta.meta_value AS DATE) >= '2016-02-05 01:00:00' ) ) AND wp_posts.post_type = 'event' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 12
Feb
5
comment Meta Query with date and time on the same Day before given time
@Milo Sorry, was a type. I also added some details to the description.
Feb
5
revised Meta Query with date and time on the same Day before given time
Fixed a typo, added some more description.
Feb
5
comment Meta Query with date and time on the same Day before given time
@PieterGoosen Please check now.
Feb
5
revised Meta Query with date and time on the same Day before given time
deleted 258 characters in body; edited tags
Feb
5
revised Meta Query with date and time on the same Day before given time
edited body
Feb
5
asked Meta Query with date and time on the same Day before given time
Jan
31
accepted Meta Query returns wrong number of posts
Jan
31
comment Meta Query returns wrong number of posts
@PieterGoosen Make it to an answer, and I will accept it. :)
Jan
31
asked Meta Query returns wrong number of posts
Oct
13
awarded  Popular Question
Jun
9
accepted Add table button in editor without Plugin
May
29
asked Add table button in editor without Plugin
Feb
11
comment add_rewrite Rule
@Milo My other quetion ist refering to a cpt, this one to a taxonomy. So I thought it would be better, to post 2 questions. Theere must be way, to solve the problem above by a custom functio. I tried it with a plugin and it wokred, but i want to avoid, to use a plugin. I used this one wordpress.org/plugins/wp-htaccess-control.
Feb
11
asked add_rewrite Rule