Hello,
I just brought DW wall and want to do a Masonry layout on a single post. For example, the Post content will be shown on top, and then, all related posts will be shown in a masonry format under it.
Can you tell me how to do it? What do I have to change in single.php?
thanks,
Alan
At the moment, our theme does not support this issue. However, you can use a plugin to add the Related post section in the single post. Please find the plugin here: https://wordpress.org/plugins/contextual-related-posts/screenshots/
Hope this helps !
Hello, Dominic,Thanks for the fast reply. I can query the related posts myself. I know how to write the query, so no plugin needed. I just need help on how to display it in the masonry layout. I actually try to copy index.php to single.php, but it does not work. It does not show the masonry layout.Is there a “grid” css class that I need to use?After looking through the code, I know the basic structure is ????????? What should be here? Can you tell me what to do next?
The basic HTML structure is: ???? What should be here?
Wow, it doesn’t let me post html??
<div id=”container” class=”clearfix”>
<div id=”content” class=”masonry”>
????
</div></div>
I know the basic HTML structure is:
<div id=”container” class=”clearfix”>
<div id=”content” class=”masonry”>
???? What should be here?
</div></div>
Hi,
<div id=”container” class=”clearfix”>
<div id=”content” class=”masonry”>
???? What should be here?
</div></div>
This should be those items that you query out,
It’s gonna be like this :
<div class=”item ( your class you use in css to modify your posts )”>( Each of your posts )</div>
Please login or Register to submit your answer