Ok i have a file which named,
now I have a menu item called "all post" and in that menu I want to call the page-allpost.php which will display all the post. how to do that?
hope someone here could help, thanks.
Give the file a template header, then create a page under Pages in admin, and assign that template to the page. You can then add that page you created to your menu.