82 reputation
7
bio website
location Kansas City, KS
age
visits member for 2 years, 2 months
seen yesterday

WordPress developer


Oct
23
comment rewrite rule for home/index page
Yeap, permalinks resaved whenever changes are made. And when I var_dump( $wp_rewrite ) new rule is not there.
Oct
22
comment How do you use a CPT as the default home page?
This doesn't work at all ... server warnings/errors: Missing argument 2 for wpa18013_add_pages_to_dropdown() and Undefined variable: r
Apr
4
comment Filtering the Admin Comments List to Show Only Comments from the Current User?
Pay your attention to foreach($comments as $i => $comment) ... the most probably you won't be able to unset the comment because PHP duplicates an array. You should use foreach($comments as $i => &$comment) instead which will make array member unsetable.
Mar
27
comment If new comment posted in custom post - send notification to custom email from custom field
That's OK but 2 things need to be pointed out: 1. get_comment( $comment_id ) should be get_comment( $comment_ID ) 2. in order for this function to work, post meta (custom field) should have name - value pair declared: master_email - somebody@somedomain.com
Mar
24
comment Fetch all Posts where logged in user has commented
That's exactly what I needed! The only thing that I changed is sql WHERE clause because it actually needs to be compared to logged in user ID. Thanks a bunch!
Mar
24
comment wp_update_user doesn't update and update_user_meta does
I think it has something to do with how data is saved to wp database, there are two separated tables "wp_users" and "wp_usermeta".
Oct
18
comment WP_Query - meta fields numeric
Try with "OR" and compare => 'BETWEEN' for a case key value is not strictly set to 200000.
Oct
18
comment How do I create Widget within plugin that uses its own class?
That's correct man, thanks a lot! It looks like WP_Widget is fired too early.
Oct
17
comment How do I create Widget within plugin that uses its own class?
I have edit my question in order to make it as clear as possible.
Oct
17
comment How do I create Widget within plugin that uses its own class?
@toscho - I have "my-plugin.php" that is main plugin file packed as a class. I'm trying to include additional file (require_once( 'include/custom_functions.php' );) that holds widget class and add_action. External file is included out of plugin class.
Oct
17
comment How do I create Widget within plugin that uses its own class?
@MridulAggarwal - I know I can't put one class into another, I'm trying to pack widgets along with a plugin.
Oct
12
comment Displaying Posts Related to Other Posts by a Taxonomy Term?
@user5112 According to WP codex you can't combine "post__in" and "post__not_in" in the same query!
Oct
9
comment meta_query sorting by 2 keys
Is there a way you can provide an example of "normal" mySQL query?
Oct
9
comment meta_query sorting by 2 keys
I'm afraid it doesn't work, it just keeps sorting posts by date without putting those who have "is_sponsored" value of 1 to the top.
Oct
9
comment meta_query sorting by 2 keys
Yeap, I know it hasn't been resolved yet but I thought this is the right place to sort it out :)
Oct
5
comment Front-end login problem: requires re-authorization when accessing dashboard
I would but 1 day time frame is required.