<?php
$file = file_get_contents('json.txt');
$file = json_decode($file,true);

$post = $file['result']['posts'];

if($post){
  foreach($post as $item){
    if($item['link'] == 1){
      # 1'e eşit olanlar
      echo $item['title'].'<br>';
    }
  }
}
?>
Buyur dostum.

// Ek bilgi: Gelen json verilerini obje'den ben burada array'a çevirdim. İşini daha kolaylaştırır.