I'm really newbie to wordpress theme development and I want to get recent 10 posts inside front-page.php and all posts inside the index.php (I have no idea if a better way is there) followed by pagination.
Update : I want to have a home page that shows 10 posts and a articles page that shows all posts.
Is this approach right? if it is, how do I do that?
after some research I found a solution to do that.
at first I created 2 pages called
homeandarticles, then I changedSetting -> Reading:Front Page->homeand
Posts Page->articles.then I put the following in the
index.phpasarticlespage :then inside of
front-page.php:finally it works in the way exactly what I wanted.