Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #484551

    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.

    #484579

    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

    #484590

    works to get the content shown instead of the excerpt but all the “p” tags are getting removed.
    any idea ?

    #484691

    $excerpt = apply_filters('the_content', $entry->post_content);

    this is the solution if anybody needs to output the content including all tags :)

    #485054

    Hi,

    Glad you got it fixed and thanks for sharing the solution :-)

    Thanks,
    Rikard

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.