416 reputation
28
bio website
location Istanbul/Turkey
age 31
visits member for 1 year, 6 months
seen 16 hours ago

Apr
3
revised Upload path/URL weirdness for the main blog of a multisite/network setup
added 159 characters in body
Apr
3
revised Upload path/URL weirdness for the main blog of a multisite/network setup
deleted 4 characters in body
Apr
3
awarded  Student
Apr
2
asked Upload path/URL weirdness for the main blog of a multisite/network setup
Feb
2
awarded  Tumbleweed
Jan
31
answered Calling mysql_query() on another database, assumes WordPress using that database
Jan
31
revised How to create a wordpress template without using any page
replaced php header() with WP status_header()
Jan
31
comment How to create a wordpress template without using any page
@ShaharDekel Welcome! With this solution you keep everything in your theme and there is no need to touch .htaccess.
Jan
31
awarded  Organizer
Jan
31
revised How to create a wordpress template without using any page
Removed <multisite> tag, because the question has nothing related to multisite
Jan
31
suggested suggested edit on How to create a wordpress template without using any page
Jan
31
answered How to create a wordpress template without using any page
Jan
30
answered Getting custom admin submenu item to highlight when its active
Jan
28
comment restore_current_blog() vs switch_to_blog()
One more thing needs to be set as well: $GLOBALS['switched'] = false;. Although the function ms_is_switched() do check for $GLOBALS['_wp_switched_stack'] but this is introduced since 3.5 and some plugins are still using $GLOBALS['switched'] to see if WP is in switched mode or not.
Jan
26
asked Restrict editing of a custom post type based on status and user capabilities
Jan
23
comment Query current and future events, ordered by begin date
@tosca Aah, here is the issue: with your original date format (yymmdd in ACF) you need to use Ymd in php (with capital Y) NOT ymd. ACF uses jQuery UI Datepicker and yy in JQUI Datepicker means 4 digit year which in php is a single capital Y. Lowercase y in php is two digit year, so date('ymd') will be always a numeric value smaller than dates stored for your events and that's why you get all events.
Jan
23
comment Query current and future events, ordered by begin date
@tosca Did you remove meta_key, order and orderby from your query args? Also see my updated answer above for proper mysql date format.
Jan
23
revised Query current and future events, ordered by begin date
added 342 characters in body
Jan
23
awarded  Constituent
Jan
23
answered Query current and future events, ordered by begin date