611 reputation
24
bio website dex-labs.com
location Kuala Lumpur, Malaysia
age
visits member for 1 year, 7 months
seen Mar 15 '12 at 1:17
stats profile views 43

Oct
1
awarded  Yearling
Jun
10
awarded  Tenacious
Jan
15
comment Engadget Like most commented plugins
codecanyon.net/item/popular-posts-bar-widget/115225
Dec
22
comment Very Slow Page - How to Optimize # of Queries?
No problem. the else: statement is easy just add it right before the last line endif; // END $event_query->have_posts();
Dec
22
comment Very Slow Page - How to Optimize # of Queries?
i updated my answer with what should fix the sorting of days.
Dec
22
revised Very Slow Page - How to Optimize # of Queries?
update
Dec
20
comment Very Slow Page - How to Optimize # of Queries?
adding sort($times); before the foreach loop should do the trick. If it doesn't i will look into it and update my answer.
Dec
20
comment Very Slow Page - How to Optimize # of Queries?
yes the $day needs to be defined for use in the first <h1> tag. The get_post_meta function does not make a db call, as all meta values for the posts are cached by the WP_Query function so it isn't a problem to make multiple get_post_meta queries.
Dec
19
comment Very Slow Page - How to Optimize # of Queries?
try replace $times[$day][] = array(... with $times[date('Y-m-d', strtotime($custom_field_value))][] = array(...
Dec
19
comment Very Slow Page - How to Optimize # of Queries?
oops, yes u can use get_post_meta($post->ID,'opening_time', true) instead of $post->post_date
Dec
17
answered Very Slow Page - How to Optimize # of Queries?
Dec
14
comment How to query two meta fields and display results between them
if the timestamp is saved in the db like mm/dd/yyyy change 'type' => 'NUMERIC' to 'type' => 'DATE'
Dec
14
comment Very Slow Page - How to Optimize # of Queries?
it can be done with one db query and without the for() loop. Will write a more detailed answer by the end of the day.
Dec
13
comment Very Slow Page - How to Optimize # of Queries?
y not simply make the future value '+10 days' and remove the for($i) loop? That will reduce your wp database queries from 10 to 1.
Dec
13
answered How to query two meta fields and display results between them
Dec
9
answered Wordpress AJAX - how to return true or false in the callback function
Dec
1
comment shortcode inside another shortcode
if there isn't a shortcode inside it will return as plain text.
Dec
1
answered shortcode inside another shortcode
Nov
27
comment Author Specific URL's in WordPress
if you could send me an email at ijaas@dex-labs.com with some sort of IM contact details it would be a lot easier for me to help you out. Thanks.
Nov
25
answered Author Specific URL's in WordPress