WordPress.org

Ready to get started?Download WordPress

Forums

How to handle the loop smartly (1 post)

  1. chandamon
    Member
    Posted 7 years ago #

    Hello everyone,

    I am totally new and stupid to PHP,
    what I want is simple, I wanna make an archive page which can show 25 posts in it. That it shows 5 posts in each row needs to have a <br/> or </div> in the fifth post, tenth post and ect.

    Thus I need a code which can have a paragraph break when the post count is 5, so do you have any ideas? As I need to modify it for my project, I hope you can kindly help me. I really don't have any idea about it.

    Here is my page for reference (the content is just temporary):
    http://chandamon.com/YL/?cat=1

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags