Displaying posts by category
-
I just want posts of a specific category type to display in my masonry layout. I changed this line of code in so-masonry/tpl/masonry.php:
<?php while($posts->have_posts()) : $posts->the_post(); $settings = SiteOrigin_Masonry::get_settings(get_the_ID()); ?>
to this:
<?php query_posts(‘cat=17’); while($posts->have_posts()) : $posts->the_post(); $settings = SiteOrigin_Masonry::get_settings(get_the_ID()); ?>
The posts are selected as I expected, however, I’ve lost the masonry layout and the post thumbnails as a result of this change. Anyone have any thoughts as to why this happened?
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Displaying posts by category’ is closed to new replies.