Site logo

Archived topic

Using masonry in custom template

5 replies · Started by Laurent on August 29, 2018

Viewing posts 1–6 of 6

Hi,

I'm using a custom template with a custom WP_Query and would like to display masonry style but it does not activate. I can't find the filters or the hooks I have to use to force the display like blog / archive setup ?

Could you help me with that ?

Thanks

Hi,

Thanks for your answer, I really mean a custom template with custom WP_Query not a custom post type archive.

You can use this conditional to target a page template: is_page_template( 'your-file.php' )

That would replace the is_post_type_archive() part.

Oh...I'm so stupid. Thanks.

Glad I could help! :)

This archived topic is closed to new replies.