Hi Guys,
is there a way to pull the content instead of the excerpt for the magazine element ?
our posts are super short and we would like to show them full.
the problem is that the excerpt removes all the html tags.
we have already followed this ( https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list/ ) topic to get all posts shown the excerpt.
now it would be awesome to get the excerpt replaced with the content.
Hi Shorty05!
Try changing line 566 in the /enfold/config-templatebuilder/avia-shortcodes/magazine.php from this.
$excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_magazine_excerpt_length' , 60) , apply_filters( 'avf_magazine_excerpt_delimiter' , " "), "…", true, '');
To this.
$excerpt = $entry->post_content;
Best regards,
Elliott
works to get the content shown instead of the excerpt but all the “p” tags are getting removed.
any idea ?
$excerpt = apply_filters('the_content', $entry->post_content);
this is the solution if anybody needs to output the content including all tags :)