This tutorial explains the method of creation of “featured posts” section. This is an important section for those who have specific requirements for incorporating latest news or related themes for the magazines. The important topics covered in this tutorial include creation of the main index page. It contains both featured posts section and latest posts section. Also includes usage of php variables and image retrievals.
1st Step: Go to WordPress “Installation Directory”. Then create a folder in ‘wp-content/themes’ and label as per your requirement. Following this, you should create files (new) namely “index.php, header.php, footer.php, style.css”. These four files will give you the initial framework.
2nd Step: You must go “header.php” file and open to insert a code that can output DOC type in the form of XHTML (1.0 Transitional). Then you must set Meta tags, titles for the pages reclaimed from WordPress and style sheet. Here you must include some custom built suitable script files written in java which are generally available in the net. In the container area insert blog’s name in the form of header title.
3rd Step: In order to create “Breaking news post” first one must decide the number of posts to be included in this category. To do this you should first open the index.php file and type the some suitable code generally available in the internet.
The next task is creation of more tag to include important excerpts and adding the more tag. It is followed by generation of Category identity for the customization of theme with simple suitable code insertion. To add a query like “Do you have posts”, incorporate suitable code retrieved from the internet. Then finally you must complete the generation of Post Content.
4th Step: It is meant for the “Latest Post”. It is normally placed below “Breaking News” posts. These include, creation of the loop, page closure, addition of footer.php,
5th Step: It is all about CSS styling. It includes styling, examination of available CSS. It is accomplished by copy pasting suitable code.
This is in a nutshell the process of building featured posts section for WordPress.