Friday 22 March 2013

Sample Wordpress Site :-)

Wordpress is the most used Content mangement system by the web developers. It is very easy to develop a small website with the wordpress site , even if you don't know much about php coding.
The wordpress offers default themes for you and also you can develop wordpress site with your own theme. So Iam explaining here how to develop your wordpress site With your own Theme...

First you want to download wordpress code from the wordpress.org. Download the latest version.
Now unzip the file and copy it to the localhost server. If you are using linux machine make sure that You have given it enough permissions.

Now create a database of any name. Then go into the root directory of site, Here you came to see wp-config-sample.php. Change it's name to wp-config.php.

In that file Rename details as per your requirement :-)


define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', 'root');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

Now It's the time to intsall wordpress. In the browser navigate to http://localhost/wordpress.
For installing type http://localhost/wordpress/wp-admin/install.php
 and give corresponding username and password.

After installing you can access admin panel by http://localhost/wordpress/wp-admin/

and user side by http://localhost/wordpress/

Now you can see your user side with default theme from the wordpress.

Installing New Wordpress Themes

You can set new themes in wordpress by navigating in admin> Appearances>Themes>Add theme
You can download and add themes by searching new themes based on criteria and downloading zip file and installing it.

Adding Pages

You can add new pages by clicking on pages link in the menu and click on add page.

Here You can give title,content .etc... and while saving make sure that you have selected your desired theme for the page.Also for adding subpages for a page just select the parent page while saving. After doing this all click on the publish button, Your page will be saved. When You navigate to the userside you will able to see the added page.

Adding category's

For people looking to buil small blogs they have to create posts rather than pages. So Inorder to differentiate between posts you have to categorize posts.

In this adding category section add any name you wish as category, in the slug field give any recognizable name for it, If u have any description for category add in this field. After that click on the add new category button. Your category has been created.


Adding Posts

Just fill in fields title, content and select the category you like the post be under and click on publish your post will be published

Viewing Comments

If you are buliding your blogs with wordpress, may be users will comment under your post regarding their views about the post. You can mange this comments in the comment section in wordpress admin panel. You can delete unappropriate comments made to your posts





Above I have explained to bulid a wordpress basic site with default template. This may be useful for people Who are trying to bulid a blog or site with 2 or more pages without any difficult customizations or so on. 










No comments:

Post a Comment