Support » Fixing WordPress » How to handle the loop smartly

  • 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):

  • The topic ‘How to handle the loop smartly’ is closed to new replies.