Topic: control excerpt length by masonry layout id | WP Masonry Layout

control excerpt length by masonry layout id

Home Forums Lite Version control excerpt length by masonry layout id

This topic contains 3 replies, has 2 voices, and was last updated by  Masonry Guy 1 year, 7 months ago.

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

    Olly

    How 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

    #4550 Reply

    Masonry Guy
    Keymaster

    Hi Olly,

    I did some test but excerpt length as per shortcode is not possible.

    Thanks

    #4768 Reply

    Jeffery

    I’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?

    #4807 Reply

    Masonry Guy
    Keymaster

    Hi 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

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: control excerpt length by masonry layout id
Your information: