Archived topic
Using masonry in custom template
5 replies · Started by Laurent on August 29, 2018
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 there,
Maybe this will help?: https://docs.generatepress.com/article/using-columns-in-the-blog/#adding-masonry-to-your-custom-post-type
Let me know :)
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! :)