for ($x = 0; $x < count($post); $x++) {
$username = $post[$x]["username"];
$permalink = $post[$x]["permalink"];
if(isset($post[$x]["caption"])) {
$caption = $post[$x]["caption"];
}
$timestamp = $post[$x]["timestamp"];
?>
}
?>