yan-k
10/19/2016 - 2:40 PM

Enfold, insert title into content

Enfold, insert title into content

<?php

add_filter('avf_template_builder_content', 'yanco_insert_header_into_content' );
	function yanco_insert_header_into_content( $content ) {

		if( get_post_meta(get_the_ID(), 'header', true) != 'no') {
    		$content = avia_title( array('breadcrumb' => false, 'html' => "<{heading} class='main-title entry-title'>{title}</{heading}>" ) ) . $content;
    	}

		return $content;
	}