I need a list of posts that looks like a Masonry grid. The limitation of words from text I kept with a few lines in the function.php:
add_filter( 'avf_masonry_excerpt_length', 'masonry_excerpt_length');
function masonry_excerpt_length() {
$excerpt = 5000;
return $excerpt;
}
1. The posts listed are not related to the individual post pages . They should be fully displayed only in the grid .
2. It would be ideal to insert line breaks to .
Regardless always the Mobile menu should appear on every screen size .
Thanks in Vorrraus and best regards
Lukas
Hi LukasE!
So your wanting the full posts to be displayed in the grid? You could try switching the contents of line 743 in the masonry_entries.php file.
$this->loop[$key]['content'] = avia_backend_truncate($entry->post_content, apply_filters( 'avf_masonry_excerpt_length' , 60) , apply_filters( 'avf_masonry_excerpt_delimiter' , " "), "…", true, '');
Maybe to this?
$this->loop[$key]['content'] = $entry->post_content;
Though I have not tested what will happen.
Best regards,
Elliott
That looks good – thank you.
The single Posts in the masonry grid should not link to individual pages. How can the link to the pages removed?
Kind regards,
Lukas