Timeline for Getting $comments outside the comment template
Current License: CC BY-SA 2.5
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:37 | history | edited | CommunityBot |
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
|
|
Nov 28, 2010 at 9:34 | comment | added | Jan Fabry |
@Alex: Depending on the URL you currently use, WP will launch some queries before you reach template_redirect . If you use the regular post URL and then append your get_my_comments , it will still parse the URL according to the rewrite rules and get the post from the database, even if you don't use it later. The regular AJAX methods prevent this, they go straight to your function. But maybe you need the post anyway for the comment formatting?
|
|
Nov 28, 2010 at 7:05 | comment | added | Alex |
what's the difference between using admin-ajax.php and usual site url?
|
|
Nov 28, 2010 at 7:04 | vote | accept | Alex | ||
Nov 27, 2010 at 20:53 | history | answered | Jan Fabry | CC BY-SA 2.5 |