mandiwise / isotope-posts

[RETIRED] This plugin allows you to use Metafizzy's Isotope javascript plugin to display feeds of WordPress posts with a simple shortcode. Works with custom post types and custom taxonomies too.
GNU General Public License v2.0
55 stars 17 forks source link

Isotope Posts only rendering 2 columns in WP feed #13

Closed 34tth3r1ch closed 9 years ago

34tth3r1ch commented 9 years ago

Hey, I've got a feed of thumbnails from a custom post type query... some that are two columns in width, others one-column and tall and ones that are square. The plugin doesn't seem to be recognizing that there's enough space for a third column... do I have control over column widths? Have I missed something in the controls?

full-width

mandiwise commented 9 years ago

Are you able to provide a link to the page where the issue is occurring?

34tth3r1ch commented 9 years ago

Thanks for getting back to me: http://demo.pepperlillie.com/munroe/

mandiwise commented 9 years ago

I think this is happening due to a quirk in how masonry calculates the layout. The plugin grabs the posts in whatever order you specify (alpha or date) and then masonry attempts to do the best job it can laying out the Isotope list elements based on that order and within the total width of their container element. So the fact that you have a second row that contains 2 one-column items (whereas others seem to have a one-column and a two-column item) is what creates the odd effect of the empty space between the two one-column items in row 2. Unfortunately the Isotope Posts plugin doesn't offer any finer-grained control over this.