Post content length in post grid

Is it possible to change the length of the content that appears in the post grid layout?

Hi Nicola,

Thanks for getting in touch! The post grid layout length can be controlled by the number of posts you specify. From there, you can then choose for pagination to be present or a loading icon while more are generated for scrolling.

Correct me if I am wrong, but something tells me you aren’t after that functionality though. :slight_smile: While we do offer an individual post width, the length isn’t available for each individual post. That is good feedback though and if it is what you are after, I believe I could see that being useful as well, so thanks! Feel free to add that as a feature request and we’ll take a look!

Best,
Billy

THanks so much for your replay - although neither option answer my question! :slight_smile: I just want to know if it is possible to specify or limit the number of words that appear in the post grid!

Aha! Thanks and I didn’t think about that scenario. Unfortunately, not at this time though, sorry about that!

Best,
Billy

Coming back to this one as it is the main request I get from clients is to make their posts equal length so the boxes are the same height in the blog grid. Is there any way of doing this by adding a custom function? Happy with php. Thanks!

Hey Nicola,

The easiest way of doing this would be to have the same sized images for each post and the same amount of text in each excerpt. You can control the content length using the excerpt field in the WP editor or the post would take on the content in the editor until a certain point.

Best,
Billy

@billy @mrswisesturt

Hey Nicola and Billy

In my experience the biggest factor in determining the different size boxes is the length of the title (character count).

A title that create more than one line will be deeper than a title that takes up one line.

The way to see this in action is to resize your browser and you can see this happen on the fly.

One of the issues with the varying heights is that posts published in descending order don’t appear to be. You and I know they are and that it’s the masonry grid providing the illusion but to the untrained eye (which most are) the posts look out of order.

EG: http://weallwearitdifferently.com/

Keep up the great work. We looooooove Beaver Builder.

So here is an idea. what if a clear div is added for each new row so at least each row is straight and aligned.

Correct me if I am wrong but you would have to modify classes/class-fl-builder-loop.php or overwrite it somehow?

@billy

Could you follow up on my previous suggestion, please :slight_smile:

Hey guys,

Just to answer the primary question in here. The length of the excerpt can be adjusted via a filter and this gets applied site wide. Check the link for the excerpt codex below, the Control Excerpt Length part.
https://codex.wordpress.org/Function_Reference/the_excerpt

Johan,

I don’t think that will work as the Posts in the grid aren’t being floated, but I could be wrong. Anyway, a Match Height setting for the Posts module will be released with the next patch so this shouldn’t be an issue anymore. :slight_smile:

Ben

@Bencarlo

That is my bad! I meant a clear div in a more literal sense. Like a clear/transparent div that spans the full width ie. 20px tall that gets inserted for every row of posts. That way each row would at least be straight in the top. I didn’t mean a clear div to clear the floats :slight_smile:

That would work right? And if so, can you even overwrite the classes from outside the plugin?

Regarding the excerpt, it is true that you can adjust the height of each post using the excerpt. But lets say your client says, hey I would like 4 lines of text in each excerpt. Then you would have to say OK, each title can only be XX characters and you can only have a total of YY characters in your tags section all together and so on. It would just not be very practical for the client.

But I am looking forward to seeing this match height feature in the next release.
Do you have a link to where it is described?

Hey Johan,

It’s kind of a minor addition to the plugin so we didn’t have anything ready. It’s basically just setting the Equal Height option to Yes then all Posts in the grid will have the same height. Have a go at it, it’s already out with 1.6.4.2. :slight_smile:

Ben

Just coming back to this to say thank you so much for adding this feature as I asked the original question back in January - it is still the most requested change I get from clients (to make the post content boxes even in height) and I am so glad I can finally stop having to tell them they need to live with it! Thank you!

Hey Nicola,

No worries! Enjoy! :slight_smile:

Ben

Ahh it came out yesterday. Awesome!

@nicola, Hello dear :smiley:
best johankat

Ahh it came out yesterday. Awesome!

@mrswisesturt, Hello dear :smiley:
best johankat

@bencarlo

Sorry I do not see this option? I am on 1.6.4.2

Hey Johan,

Check the screenshot below for reference.
http://imgur.com/USLnPzF

Ben

@bencarlo

That option is not available in my layout settings :frowning: