This account is temporarily suspended network-wide. The suspension period ends on Apr 22 '15 at 21:35.
1 reputation
321
bio website
location
age
visits member for 2 years, 2 months
seen Apr 11 at 14:18

Mar
24
comment 2 weeks ago from meta query meta value
Exactly, I need some shortcut or custom SQL, because if I have to make subqueries based on the date, it would be too cumbersome.
Mar
24
comment 2 weeks ago from meta query meta value
@Howdy_McGee read my comment again. I need to subtract days from a value in database, not from a known string.
Dec
21
comment Adding custom taxonomy in my existing category URL
How to do that?
Dec
20
comment Adding custom taxonomy in my existing category URL
Any idea if it could be done or mixing taxnomy 1 with taxonomy 2(first level) and taxonomy 2(second level) and having a custom detail link that includes the date is not possible to achieve in WP?
Dec
15
comment is_page not working when loading javascript with add_action in functions.php
Thanks, now it's working ;). Btw. I would consider this as a bug in WP. Should I post it to the WP team? Or this is not a bug?
Dec
15
comment is_page not working when loading javascript with add_action in functions.php
Hmm, I am getting this error: Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'js_custom' not found or invalid function name
Nov
7
comment How to access WP database inside ipn.php?
@anu So, it's impossible with WP?
Nov
7
comment How to access WP database inside ipn.php?
@anu I need to know how to access WP db from ipn.php file (wp is not loaded)
Nov
7
comment How to access WP database inside ipn.php?
@anu I am getting no data from it, you are right. I need to connect to the WP db somehow from the ipn.php file, that is accessed by PayPal (I have specified it in notify_url). Have you worked with PayPal and WP before?
Nov
4
comment How to get the db table row that has the biggest value in the meta value?
but what does WHERE 1=1 in your 2nd code example mean?
Nov
4
comment How to get the db table row that has the biggest value in the meta value?
What does WHERE 1=1 mean?
Nov
4
comment How to get the db table row that has the biggest value in the meta value?
I am using this in admin. Could taht be a problem?
Nov
4
comment How to get the db table row that has the biggest value in the meta value?
I am using this in admin not in frontend. Could that be a problem?
Nov
4
comment How to get the db table row that has the biggest value in the meta value?
Could you use my values provided in my question? Thank you.
Nov
4
comment How to get the db table row that has the biggest value in the meta value?
It's not working. If I print_r $car->ID I get nothing. Btw. what is meta_value_num ?
Nov
4
comment Relative path in wp_register_style not working
Hmm, seems that __FILE__ is causing the problem
Oct
15
comment How to force TinyMCE in WordPress to replace newlines with <br> tags and not with <p>&nbsp;</p>
This is not working it still throws <p>&nbsp;</p> instead of <br> in my textareas with tinymce editor.
Oct
14
comment How to force TinyMCE in WordPress to replace newlines with <br> tags and not with <p>&nbsp;</p>
@birgire Again, this is working in Drupal so it has to be working in WordPress too. I just need to set TinyMCE in WordPress and turn off some filters in WP etc.
Oct
14
comment Meta query “OR” comparison not working as expected with array
@s_ha_dum yes, it's a direct copy and paste. I didn't change anything.
Oct
14
comment Meta query “OR” comparison not working as expected with array
@s_ha_dum i am getting this: string(555) "SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1 AND wp_posts.post_type IN ('cars') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_author = 1 AND wp_posts.post_status = 'private') AND ( (wp_postmeta.meta_key = 'rw_color' AND CAST(wp_postmeta.meta_value AS CHAR) IN ('1,0')) ) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 99999"