Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1375291

    Hi enfold team,

    I am trying to get the magazine element to display excerpts. I found another ticket that said to add this (below) to line 1503 here (config-templatebuilder/avia-shortcodes/magazine/magazine.php) but that did not work.

    $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, ” );

    Please advise

    #1375472

    Hey ezcom,

    Thank you for the inquiry.

    In the magazine.php file, please try to look for this code around line 1508.

    $output .= "<article class='av-magazine-entry av-magazine-entry-id-{$entry->ID} av-magazine-format-{$format} av-magazine-type-{$type} av-magazine-entry-{$entry->loop} av-magazine-entry-{$style} {$extraClass}' {$markupEntry}>";
    

    Then right above it, add this code.

    $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, '' );
    

    Best regards,
    Ismael

    #1375567

    Worked,

    Thank you

    #1375571

    Hi,

    Glad Ismael could help!

    Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Magazine to display excerpt’ is closed to new replies.