Tagged: Blog, excerpt, Full Content
Greetings:
I’m wanting to show the full post for any posts directly in the blog page in WordPress.
Currently, I’m using the “List Layout – Excerpt” blog layout. This shows the post title and excerpt with a Read More button. This is okay, but plain as it doesn’t show any images and doesn’t show any videos should the post contain one.
I’d rather modify that list layout type (bloglist-excerpt in code) to show the full content.
This is controlled on line 350 – 352 in loop-index.php and I have that in my child theme.
When I try to put the_content(); in that block, it works, but doesn’t render any of the avia page elements.
This is probably something simple, but I couldn’t find the answer. How do I show “the_content() ” and properly render the avia elements? Or is there another approach I should be taking?
Thanks in advance!
Hey markwilliams,
Thank you for your patience, unfortunately, replacing the ALB content is not as easy is replacing “the_content()” or “get_the_content()” try looking in “\enfold\template-builder.php” on line 76 $content = apply_filters( 'avia_builder_precompile', get_the_content() );
I believe you will find the comments there helpful.
This sounds like it is similar to the issues that Toolset and Advanced Custom Fields have when trying to replace “the_content()”, there were some older filters specific to these two plugins but I believe the theme files were changed since then, and since this is not what you are trying to do it won’t help.
The best option is to use the elements and their available options instead of trying to rewrite them as the elements are advancing with new options such as with the “CET” and your edits may cause problems for your site in the future.
Best regards,
Mike