Timeline for get posts based on meta value of the author
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 22, 2017 at 20:12 | history | edited | Paul 'Sparrow Hawk' Biron | CC BY-SA 3.0 |
changed add_filter() -> add_action()
|
Mar 21, 2017 at 17:49 | comment | added | Paul 'Sparrow Hawk' Biron | @AbdulRehman I'm not sure about "prorfessional", but it sure makes the main code cleaner to read (which I guess is one characteristic of "professional" :-) | |
Mar 21, 2017 at 17:09 | comment | added | Anwer AR |
Thank you @Paul. this approach looks more professional. i have not used parse_query action hook for such queries before. will definitely use it from now. thanks again .. and @Gal my answer may also works fine but i recommend this answer.
|
|
Mar 21, 2017 at 14:57 | comment | added | Paul 'Sparrow Hawk' Biron |
note: my method is essentially the same as the answer from @AbdulRehman. it's just done via a parse_request filter.
|
|
Mar 21, 2017 at 14:45 | history | answered | Paul 'Sparrow Hawk' Biron | CC BY-SA 3.0 |