tobiasolssonse
9/26/2017 - 9:12 AM

Get page title by id - filter

{{mc.lank[0].post_parent|gettitle}}

$twig->addFilter('gettitle', new Twig_Filter_Function('gettitle'));

  function gettitle($id){
    	$text .= get_the_title($id);
    	return $text;
	}