Last active

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:5135205
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php $download=json_decode(wp_remote_retrieve_body(wp_remote_get('')));
foreach ($download as $comments){
foreach ($comments->data->children as $comment){
if($comment->data->body != null){
?><li><a href="<?php echo($comment->data->author)?>" target="_blank">
<?php echo html_entity_decode($comment->data->author); ?></a><br /><?php
echo html_entity_decode($comment->data->body); ?></li><br /><br /><ul><?php
foreach($comment->data->replies->data->children as $reply){
?><li><a href="<?php echo($reply->data->author)?>" target="_blank">
<?php echo html_entity_decode($reply->data->author); ?></a><br /><?php
echo html_entity_decode($reply->data->body_html); ?></li><br /><?php
} ?></ul><?php
} ?></ul><?php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.