Home › Forums › Lite Version › control excerpt length by masonry layout id
- This topic has 3 replies, 2 voices, and was last updated 5 years, 10 months ago by
Masonry Guy.
- AuthorPosts
Olly
GuestHow can i have different excerpt lengths for different layouts?
I already use the following:
add_filter('excerpt_length', 'my_excerpt_length'); function my_excerpt_length($length) { return 25; // Change 25 to your desire length of the excerpts on the Workshop page (WP Masonry Layout Plugin) }
how can i modify this so that it relates to a specific masonry layout id?
Many thanks for your great plugin
Masonry Guy
KeymasterHi Olly,
I did some test but excerpt length as per shortcode is not possible.
Thanks
Jeffery
GuestI’m having a similar problem. Because the excerpt length is different in each post the top row is all different, causing the second row to not line up. Is there any way to fix that?
If nothing else, can we turn off the excerpt and just have the photo and caption?Masonry Guy
KeymasterHi Jeffery,
May be you have used different text length in your post excerpt box ? We use default wordpress excerpt, so if you have kept excerpt text, then it is shown.
For lite version, there is no settings to remove the excerpt. However, you can hide it with using css.
Thanks
- AuthorPosts