I want to code a plug-in that creates new custom home page. Note that I have never coded any plug-in before.
1) After activation of plug-in user needs to go to the options of the plug-in and set up that current home page will be replaced by the one that this plug-in generates ( I hope I can code this bit somehow in the future )
2) Plug-in generates custom home page that displays only
- title and body of the latest post
- number of comments
Could someone help me how to code the 2) ?
Currently I have one php file that is very simple plug-in. I can activate / deactivate it but I don't know how to code the home page.
I'll be using WP 3.6