Jump to content

placing multiple post in pattern


Alfraganus

Recommended Posts

Dear developers,

 

I've been trying something that I dont know, I would like to place my 5 posts in special pattern, the example of pattern can be in this site https://kun.uz/, let's say, I want my first post to be on the left with larger size while other 4 posts to be on the right with the same size all, however all posts are from the same table in database, I don't know even its defenition to search it on google, please could you kindly help me to find it,

 

isn't it called something "front end"? if so, where to find it?

Link to comment
Share on other sites

It shouldn't be that hard to think about. For example, you can send a query for just the first post, and display that in one place, then send a query for posts 2 through 5 and loop through those to display them somewhere else. Or, you could send one query for all posts and get the first one first and display it in one place, and then loop through the rest to print out the HTML for those.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...