239 reputation
112
bio website SudarMuthu.com
location Bangalore, India
age 32
visits member for 2 years, 4 months
seen 18 hours ago

I am a developer from Bangalore, India, mostly interested in WordPress, Android and Arduino programming. I write about my projects at my blog. You can also checkout my code that I have released as open source in my github account. You can follow me on twitter.


Apr
2
comment query_post by title?
This should be accepted answer since this shows how to do it using WordPress built-in functions and not using custom SQL query.
Feb
20
comment Find terms in a custom taxonomy based on the hirearchy
I used your code as a base and replaced get_term_by with get_terms with parent parameter and little bit of tweak and was finally able to do it. Thanks.
Feb
20
accepted Find terms in a custom taxonomy based on the hirearchy
Feb
17
comment Find terms in a custom taxonomy based on the hirearchy
Unfortunately I can't change to use slugs. I am trying to see if I can adapt your solution to use names instead of slugs. Meanwhile if you have any solution for it then that would be very useful. Thanks.
Feb
16
comment Find terms in a custom taxonomy based on the hirearchy
Thanks for the answer. The one problem I have with this code is that the path contains slugs, but in my case it contains names. Since names can have duplicates get_term_by will not work properly :(
Feb
16
comment Find terms in a custom taxonomy based on the hirearchy
@PieterGoosen get_term_children can only tell me if a particular term has children, but in my case I need to search for the complete path. I am not sure if I completely understand your suggestion.
Feb
16
comment my wp schedule event is not working
Personally I use error_log function to log diagnostic messages from my cron job.
Feb
16
asked Find terms in a custom taxonomy based on the hirearchy
Jan
16
asked HTTP digest authentication using wp_remote_get
Sep
2
comment How to retrieve the date on which a post was moved to trash?
Thanks. Didn't know about this meta field.
Sep
2
accepted How to retrieve the date on which a post was moved to trash?
Sep
2
comment How to retrieve the date on which a post was moved to trash?
@TheDeadMedic I have not tried the code yet, but when I look in the admin UI the Last Modified date is not updated when a post is trashed.
Sep
2
comment How to retrieve the date on which a post was moved to trash?
That will allow me to retrieve posts based on created date or modified date. But how to use trashed date with date_query?
Sep
2
asked How to retrieve the date on which a post was moved to trash?
Sep
2
awarded  Popular Question
Aug
26
awarded  Curious
Aug
25
accepted Is it possible to query all posts that don't have an attachment?
Aug
25
comment Is it possible to query all posts that don't have an attachment?
@birgire Thanks and I have marked this as the answer. I like the 2nd and 3rd approach.
Aug
25
awarded  Yearling
Aug
25
comment Is it possible to query all posts that don't have an attachment?
I like the fact that you are using distinct in the sub query.