I want to display only 1 post of my choice on Homepage nothing else. Please give the complete code to achieve this.. Thanks in Adv.
depending on your theme you can easy to edite home-page.php at local like that: http://tinbaohiem.com/wp-content/themes/vinaora/home-page.php and add code to display latest post from databse or your code here.
Use the information on this page with one of the methods below: http://codex.wordpress.org/Function_Reference/query_posts#Retrieve_a_Particular_Post Method 1 Directly edit the code for the home page in your theme. Method 2 Create a page and title it whatever you want (Home Page for example) and set it to display as the front page of your blog in the WP settings. Get a plugin that will let you execute PHP within a page/post. Insert the php you want in the page you made.
Go to your wordpress Dashboard > Settings > Reading > Select a static Page. and you are done! But If you want to remove the navigation bar and sidebar too, either use a landing page theme for wordpress, or just edit these things out of your current theme.
It actually depends on a lot of parameters. Do you want to show the same post always or the latest post? If just the latest post, edit it here:- Dashboard -> Settings -> Reading If random post to be shown, you need to tweak your themes files. again if just a static page, then you can edit it in Dashboard -> Settings -> Reading Which theme are you using?
You can just easily go to the settings area, then reading, then set your frontpage to display only 1 post. That should be easy.