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
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
Worked,
Thank you