Forum Replies Created
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
February 15, 2018 at 12:57 pm in reply to: Customize PHP Template for Single Post Pages that use Advanced Layout Editor #912732
A way to use the single.php with Advanced Layout posts:
February 12, 2018 at 7:23 pm in reply to: Custom Post type – avia layout builder + custom fields #911280This is my solution in single.php, it starts at line 40:
//filter the content for content builder elements $content = apply_filters('avia_builder_precompile', get_post_meta(get_the_ID(), '_aviaLayoutBuilderCleanData', true)); if (!$content) { get_template_part( 'includes/loop', 'index' ); } else { //check first builder element. if its a section or a fullwidth slider we dont need to create the default openeing divs here $content = apply_filters('the_content',$content); $content = apply_filters('avf_template_builder_content',$content); $post_format = get_post_format() ?: 'standard'; $lf_class = implode(" ",get_post_class('post-entry post-entry-type-'.$post_format." ".$post_class." ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo' => false)); echo "<article class='".$lf_class.">"; echo '<div class="entry-content-wrapper clearfix standard-content">'; echo $content.'</div></article>'; }
February 9, 2018 at 2:41 pm in reply to: Custom Post type – avia layout builder + custom fields #910269Got the same here: If a post is written with the advanced layout builder, the single.php is no longer called. My single.php is layouted again and shows pictures depending on the category, why it should be called.
If I now use this in template-builder.php in line 13:if (is_single ()) { include ('single.php'); exit; }
the single.php is called, but the content is a “read more”-link and not the layouted content.
How can this be solved?
TIA,
Andreas- This reply was modified 6 years, 10 months ago by A. Kempf.
Thanks a lot, that’s how it works again.
Any news?
Same here: Using 4.9–de_DE_formal and no avia editor.
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)