You can not use directly the wordpress functions by just copying only core files of wordpress.
You can refere this link also so you get some hint :- https://davidwalsh.name/wordpress-recent-posts
You can not use directly the wordpress functions by just copying only core files of wordpress.
You can refere this link also so you get some hint :- https://davidwalsh.name/wordpress-recent-posts