Site logo

Archived topic

masonry grid

3 replies · Started by Nikolaj on December 28, 2020

Viewing posts 1–4 of 4

is it possible to do the masonry grid setup (as used on the frontpage) on an individual page ex. a news page?

Hi,

To clarify: Did you mean, you want to have a post list w/ masonry grid setup on a static news page?

If so, you'll need something like WP Show Posts plugin to display these news "posts" and display it in masonry mode.
https://wpshowposts.com/

I do loops with custom content shortcode and need to tag up content just like the masonry grid ex.

[loop category="news"]
here I want to tag up content as masonry

headline
content

[/loop]

I do loops with custom content shortcode and need to tag up content just like the masonry grid ex.

You'll have write your shortcode to enqueue script/s for masonry library (usually jquery-masonry) and add the classes + inline scripts used for masonry to this custom shortcode's printed markup for it to work.

This is pretty tricky to do and is most likely time consuming.

You may be better of using a plugin that already does all of this (WP Show Posts) and set the query to display only posts from the "news" category.

This archived topic is closed to new replies.