diff --git a/functions/functions-twig.php b/functions/functions-twig.php
index <HASH>..<HASH> 100644
--- a/functions/functions-twig.php
+++ b/functions/functions-twig.php
@@ -36,10 +36,17 @@
 		$twig->addFilter('wp_title', new Twig_Filter_Function('twig_wp_title'));
 		$twig->addFilter('wp_sidebar', new Twig_Filter_Function('twig_wp_sidebar'));
 
+		$twig->addFilter('get_post_info', new Twig_Filter_Function('twig_get_post_info'));
+
 		$twig = apply_filters('get_twig', $twig);
 		return $twig;
 	}
 
+	function twig_get_post_info($id, $field = 'path'){
+		$pi = PostMaster::get_post_info($id);
+		return $pi->$field;
+	}
+
 	function twig_wp_sidebar($arg){
 		get_sidebar($arg);
 	}
added twig for get_post_info