I need code that will make homepage only have 4 columns and max 5 rows per column.
Total 20 spots [ 20 articles ] only on homepage.
When i add new article on homepage then each column shall shift with articles. so the 20th article on homepage will get moved to row 1 column 1 on backpage.....when new article gets added to homepage.
backpage has 4 columns and 25 articles [ 25 spots per column] total 100 articles for backpage.
when user backpage gets full with 100 articles , then last article on backpage gets pushed to backpage , page 2 column 1 row 1.
the code can be made in any programming language.