Saturday, 29 June 2013

WordPress Tutorial WordPress How To For Beginners

WordPress has an intuitive administration interface which anyone can handle. In WordPress you will be able to compose a post and publish it on your website with just a few clicks! With WordPress you can easily customize the look of your website for there are lots of free WordPress themes available on the Net.
This Advanced WordPress Tutorial covers the following topics:

How to Install WordPress?

Step-by-step Manual WordPress Installation Guide

The first thing you need to do to install WordPress is to download the latest installation package. Make sure that you download WordPress only from the official download page.
Once the download is complete, extract the archive and upload it to your web hosting account. You can do that via FTP using a client application like Filezilla or via cPanel -> File Manager -> Upload file(s). If you want this WordPress installation to be main for your website, the files should reside in the public_html folder of your account. However, you can always make a subfolder (i.e. public_html/blog) if you want to run only part of your website on WordPress.
Next, navigate to your website to start with the installation process. If you have uploaded WordPress in your public_html directory you'll need to go to http://yourdomain.com in your preferred browser. The first thing you will notice is a message, telling you that you don't have a wp-config.php file and you should create one. Just click on the Create a Configuration File button to proceed.
On this page you will see a message, asking you to prepare the necessary information for the installation. Basically, you need to make a new MySQL database, username for it and grant that username the appropriate permissions for this database. For detailed information on how to do that, please refer to our MySQL tutorial. Once you have your database info, hit the Let’s go! button.
Enter the details for your newly created MySQL database and press the Sumbit button
On the next screen you will have to enter the information about your administrative username and the title of your new site. In addition, you can specify whether you'd want search engines to index your site or not. Once you fill in that information, press the Install WordPress button. Bear in mind, however, that you should specify a real email address. It can be later used in case you forget your password.
That's it!Your new WordPress application is installed. You can use the Login In button to access your administrative backend and start posting in your new site.
................

,,,,


Create A Website With WordPress

Once you have WordPress installed, you are ready to start work and add content to your website.

How to Use WordPress?

Where to log in?

Once you have your Wordpress blog installed, you need to log in to the WordPress administration area from where you can write posts and articles, manage comments, change your theme, etc. To log in the WP admin panel, navigate to the WP login page or directly type the URL in your browser:
http://www.yourdomainname.com/wp-admin/

Writing a post in WordPress

Writing posts and pages is the core activity in WP. You can start your editorial experience by clicking the Add New button located in the Posts menu:
You can proceed with entering the desired content. Once you are ready, the new post can be published just by clicking the Publish button.

Creating pages in WordPress

Creating individual pages in WordPress is quite similar to writing a post. You should simply click Add New in the Pages menu.
When you are ready with your new page, click Publish to save it. 
,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

WordPress Main Functions

The main functions of the WordPress tool are accessible from the upper part of the Admin page. They will help you to create and manage your blog website.
  • Dashboard Here you can see the latest news from the WordPress developer's site.
  • Write This is the place where you can share your thoughts and ideas with the world by writing posts and pages or editing the existing ones.
  • Manage This is actually where you can manage the content of your site. You can see lists of all your Posts, Pages, Categories and Comments, read and edit them. Here you can also edit your Templates and other files used in your blog.
  • Links Here you can add links to your favorite web sites. They can be organized by category, have internal references about your relationship to their destinations, be automatically associated with images, and can even be rated on a scale from zero to nine.
  • Presentation From that part of Administrator's area you can manage the way your content will be shown to the visitors of your blog. Here you can change the themes and add new from the developer's site.
  • Plugins This is the place, where you can manage the existing plugins and add new ones from the developer's site. Every plugin comes with the description about its functionality and instruction how to enable it.
  • Users Here you can manage your user's profiles or add new users to your blog. This way they also will be able to add content to your blog.
  • Options This is the place where you can manage all the configuration settings for your blog. This section includes general, writing, reading, discussion, miscellaneous options and customization of permalink structure.
  • Import Here you can import posts or comments from another system into your current blog.
  • .................................




WordPress Categories

In order to have your blog in a decent structure and ease your visitors' navigation throughout your posts and pages, you should categorize your posts.

Create a new category in WordPress

A new category can be created from the Posts menu > Categories.

Change the category of a post

In order to move a post from one category to another, you should click on Edit in the Posts menu, hover over the post you wish to edit and click Quick Edit.

From the Categories section select the new category (in our case the Test category) and click Update Post to save the change.


Delete a category



WordPress Comments

In WordPress your visitors have the option to leave comments on your site. This feature creates a dynamic interchange between you and your readers.

Moderate comments

You can moderate your visitors' comments via the Comments menu in the WordPress administrator backend.

Comment options

You have a number of options that you can set for your Comments. They are listed under Settings > Discussion.

This is the place where the site administrator decides:
  • if comments are allowed,
  • if pingbacks and trackbacks are acceptable,
  • and what constitutes Comment Spam..............





How to Transfer WordPress

This tutorial will teach you how to transfer a WordPress-based website in a manner that best fits your needs. Whether you are moving from Wordpress.com or from a stand-alone application, the instructions below will help you. Note that if you are transferring your WordPress site to SiteGround, we provide a free professional site transfer as part of our WordPress hosting package.

Transfer WordPress Tutorial


























Once you have WordPress installed, you are ready to start work and add content to your website.

How to Use WordPress?

Where to log in?

Once you have your Wordpress blog installed, you need to log in to the WordPress administration area from where you can write posts and articles, manage comments, change your theme, etc. To log in the WP admin panel, navigate to the WP login page or directly type the URL in your browser:
http://www.yourdomainname.com/wp-admin/

Writing a post in WordPress

Writing posts and pages is the core activity in WP. You can start your editorial experience by clicking the Add New button located in the Posts menu:
You can proceed with entering the desired content. Once you are ready, the new post can be published just by clicking the Publish button.

Creating pages in WordPress

Creating individual pages in WordPress is quite similar to writing a post. You should simply click Add New in the Pages menu.
When you are ready with your new page, click Publish to save it. 

Website With WordPress

Once you have WordPress installed, you are ready to start work and add content to your website.

How to Use WordPress?

Where to log in?

Once you have your Wordpress blog installed, you need to log in to the WordPress administration area from where you can write posts and articles, manage comments, change your theme, etc. To log in the WP admin panel, navigate to the WP login page or directly type the URL in your browser:
http://www.yourdomainname.com/wp-admin/

Writing a post in WordPress

Writing posts and pages is the core activity in WP. You can start your editorial experience by clicking the Add New button located in the Posts menu:
You can proceed with entering the desired content. Once you are ready, the new post can be published just by clicking the Publish button.

Creating pages in WordPress

Creating individual pages in WordPress is quite similar to writing a post. You should simply click Add New in the Pages menu.
When you are ready with your new page, click Publish to save it. 

InstallationWordPress Fantastico Installation

Important!SiteGround no longer provides Fantastico autoinstaller on it servers. The new installer now available is Softaculous. In extensive tests it proved to match our outstanding service quality standards better, by providing more applications, faster version updates and better support. You can read more about why SiteGround now uses Softaculous in our blog.
For more information on how to install WordPress with just few clicks, please check our tutorial on How to Install WordPress with Softaculous.
If your host does not support Fantastico, please check our Wordpress Manual Installation tutorial.

Fantastico installation of WordPress

Please, follow the step-by-step guide below in order to activate WordPress on your hosting account:
STEP 1Please, login to your CPanel and locate the Fantastico De Luxe icon:
STEP 2Find and click the WordPress link.
STEP 3Then choose New Installation:
STEP 4Decide upon the location of your blog - if you would like to have it as your site front page, leave the directory box blank, otherwise fill in the appropriate folder name.
Next, fill in the administrator details and the e-mail account configuration then click the Install WordPress button.
STEP 5A new confirmation page will be loaded for the installation. Click the Finish Installation button if no errors are reported.
If else you will have to go back and rectify the specified issues.
STEP 6After completing the installation the final screen will load, providing you with the installation details. You will be able to e-mail the details to a specified address also in order to keep them for future reference.

How use Softaculous to Install WordPress

This tutorial is designed to show you how to use Softaculous to install a WordPress application to your site. It will take only few minutes and literally no advanced skills to have a fully functional WordPress instance in your hosting account.
First, login to your cPanel account and find the Softaculous icon under the "Software Services" section. It should be located in the lower part of your cPanel page, right under the "Domains" section.
Once you click on the Softaculous button, you will be redirected to the page where you have to chose the application you want to install. On the left side of your screen locate the "Blogs" category, click on it and then click on the "WordPress" link that will appear.
On the next page, press the Install button at the top of your screen to specify that you want to perform a brand new WordPress installation.
Finally, enter the required fields for your site - title, description, administrative username and password, administrative e-mail etc. and click on the "Install" button. Please note that by default Softaculous will install the application in a "wp" sub-folder. That being said, if you would like to be able to access the website only via your domain name you should delete the wp string from the "Directory" field. If you want to install the application in another sub-folder you should simply type it in the field.

Sunday, 23 June 2013

wordpress Function Reference/get categories and Function Reference/wp get recent posts

Description

Returns an array of category objects matching the query parameters.
Arguments are pretty much the same as wp_list_categoriesand can be passed as either array or in query syntax.

Usage

 <?php $categories get_categories$args ); ?> 

Default Usage

<?php $args = array(
 'type'                     => 'post',
 'child_of'                 => 0,
 'parent'                   => '',
 'orderby'                  => 'name',
 'order'                    => 'ASC',
 'hide_empty'               => 1,
 'hierarchical'             => 1,
 'exclude'                  => '',
 'include'                  => '',
 'number'                   => '',
 'taxonomy'                 => 'category',
 'pad_counts'               => false );?>

Parameters

type 
(string) Type of category to retrieve
  • post - default
  • link
Note: type=link has been deprecated from WordPress 3.0 onwards. Use taxonomy=link_category instead.
child_of 
(integer) Display all categories that are descendants (i.e. children & grandchildren) of the category identified by its ID. There is no default for this parameter. If the parameter is used, the hide_empty parameter is set to false.
parent 
(integer) Display only categories that are direct descendants (i.e. children only) of the category identified by its ID. This does NOT work like the 'child_of' parameter. There is no default for this parameter. [In 2.8.4]
orderby 
(string) Sort categories alphabetically or by unique category ID. The default is sort by Category ID. Valid values:
  • id
  • name - default
  • slug
  • count
  • term_group
order 
(string) Sort order for categories (either ascending or descending). The default is ascending. Valid values:
  • asc - default
  • desc
hide_empty 
(boolean) Toggles the display of categories with no posts. The default is 1 for true or you can add '0' for false (show empty categories). Valid values:
  • 1 - default
  • 0
hierarchical 
(boolean) When true, the results will include sub-categories that are empty, as long as those sub-categories have sub-categories that are not empty. The default is true. Valid values:
  • 1 (true) - default
  • 0 (false)
exclude 
(string) Excludes one or more categories from the list generated by wp_list_categories. This parameter takes a comma-separated list of categories by unique ID, in ascending order. See the example.
include 
(string) Only include certain categories in the list generated by wp_list_categories. This parameter takes a comma-separated list of categories by unique ID, in ascending order. See the example.
  • list - default.
  • none
number 
(string) The number of categories to return
taxonomy 
(string or array) Taxonomy to return. This parameter added at Version 3.0 Valid values:
  • category - default
  • taxonomy - or any registered taxonomy
pad_counts 
(boolean) Calculates link or post counts by including items from child categories. Valid values:
  • 1 (true)
  • 0 (false) - default

Return values

(array) 
Returns an array of category objects matching the query parameters.
The complete content of $category is:
$category->term_id
$category->name
$category->slug
$category->term_group
$category->term_taxonomy_id
$category->taxonomy
$category->description
$category->parent
$category->count
$category->cat_ID
$category->category_count
$category->category_description
$category->cat_name
$category->category_nicename
$category->category_parent

Examples

Dropdown Box as used in Parent category at post category page

This is the code used in the build in category page. Code from 3.0.1
wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None')));
This slightly altered code will grab all categories and display them with indent for a new level (child category). The select box will have a name= and id= called 'select_name'. This select will not display a default "none" as the original code was used to attach a category as a child to another category (or none).
wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'select_name', 'hierarchical' => true));

Dropdown Box

Here's how to create a dropdown box of the subcategories of, say, a category that archives information on past events. This mirrors the example of the dropdown example of wp_get_archives which shows how to create a dropdown box for monthly archives.
Suppose the category whose subcategories you want to show is category 10, and that its category "nicename" is "archives".
<select name="event-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> 
 <option value=""><?php echo esc_attr(__('Select Event')); ?></option> 
 <?php 
  $categories=  get_categories('child_of=10'); 
  foreach ($categories as $category) {
   $option = '<option value="/category/archives/'.$category->category_nicename.'">';
 $option .= $category->cat_name;
 $option .= ' ('.$category->category_count.')';
 $option .= '</option>';
 echo $option;
  }
 ?>
</select>

List Categories and Descriptions

This example will list in alphabetic order, all categories presented as links to the corresponding category archive. Each category descripition is listed after the category link.
<?php
$args=array(
  'orderby' => 'name',
  'order' => 'ASC'
  );
$categories=get_categories($args);
  foreach($categories as $category) { 
    echo '<p>Category: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </p> ';
    echo '<p> Description:'. $category->description . '</p>';
    echo '<p> Post Count: '. $category->count . '</p>';  } 
?>

Get only top level categories

To get the top level categories only, set parent value to zero. This example gets link and name of top level categories.

<?php
$args = array(
  'orderby' => 'name',
  'parent' => 0
  );
$categories = get_categories( $args );
foreach ( $categories as $category ) {
 echo '<a href="' . get_category_link( $category->term_id ) . '">' . $category->name . '</a><br/>';
}
?>

wordpress post code Template Tags/get posts Function Reference/get the ID

The most appropriate use for get_posts is to create an array of posts based on a set of parameters. It retrieves a list of latest posts or posts matching this criteria.get_posts can also be used to create Multiple Loops, though a more direct reference to WP_Query using new WP_Query is preferred in this case.
The parameters of get_posts are similar to those of get_pages but is implemented quite differently, and should be used in appropriate scenarios. get_posts usesWP_Query, whereas get_pages queries the database more directly. Each have parameters that reflect this difference in implementation.
query_posts also uses WP_Query, but is not recommended because it directly alters the main loop by changing the variables of the global variable $wp_query.get_posts, on the other hand, simply references a new WP_Query object, and therefore does not affect or alter the main loop.
If you would like to alter the main query before it is executed, you can hook into it using pre_get_posts. If you would just like to call an array of posts based on a small and simple set of parameters within a page, then get_posts is your best option.

Usage

 <?php $posts_array get_posts$args ); ?> 

Default Usage

<?php $args = array(
 'posts_per_page'  => 5,
 'offset'          => 0,
 'category'        => '',
 'orderby'         => 'post_date',
 'order'           => 'DESC',
 'include'         => '',
 'exclude'         => '',
 'meta_key'        => '',
 'meta_value'      => '',
 'post_type'       => 'post',
 'post_mime_type'  => '',
 'post_parent'     => '',
 'post_status'     => 'publish',
 'suppress_filters' => true ); ?>
Note: 'numberposts' and 'posts_per_page' can be used interchangeably.

Parameters

For full parameters list see WP_Query
See also get_pages() for example parameter usage.
get_posts() makes use of the WP_Query class to fetch posts. See the parameters section of the WP_Query documentation for a list of parameters that this function accepts.
Note: get_posts uses 'suppress_filters' => true as default, while query_posts() applies filters by default, this can be confusing when using query-modifying plugins, like WPML. Also note that even if 'suppress_filters' is true, any filters attached to pre_get_posts are still applied—only filters attached on 'posts_*' or 'comment_feed_*' are suppressed.
Note: The category parameter needs to be the ID of the category, and not the category name.
Note: The category parameter can be a comma separated list of categories, as the get_posts() function passes the 'category' parameter directly into WP_Query as 'cat'.
$post_mime_type
(string|array) (Optional) List of mime types or comma separated string of mime types.
Default: None

Return Value

(array) 
List of post objects. See get_post() return values.
Unlike get_pages()get_posts() will return private pages in the appropriate context (i.e., for an administrator). (See: Andreas Kirsch, WordPress Hacking II, January 24, 2009-- accessed 2012-11-09.)

Examples

Posts list with offset

If you have your blog configured to show just one post on the front page, but also want to list links to the previous five posts in category ID 1, you can use this:
<ul>
<?php

global $post;

$args = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 1 );

$myposts = get_posts( $args );

foreach( $myposts as $post ) : setup_postdata($post); ?>
 <li>
          <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
        </li>
<?php endforeach; ?>

</ul>
Note: With use of the offset, the above query should be used only on a category that has more than one post in it, otherwise there'll be no output.

Reset after Postlists with offset

If you need after the loop, the post you had before joining the foreach, you can use this:
<ul>
<?php
global $post;
$tmp_post = $post;
$args = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 1 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
 <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
</ul>

Access all post data

Some post-related data is not available to get_posts by default, such as post content through the_content(), or the numeric ID. This is resolved by calling an internal function setup_postdata(), with the $post array as its argument:
<?php
$args = array( 'posts_per_page' => 3 );
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
 <?php the_content(); ?>
<?php endforeach; ?>
To access a post's ID or content without calling setup_postdata(), or in fact any post-specific data (data retained in the posts table), you can use $post->COLUMN, where COLUMN is the table column name for the data. So $post->ID holds the ID, $post->post_content the content, and so on. To display or print this data on your page use the PHP echo command, like so:
<?php echo $post->ID; ?>

Latest posts ordered by title

To show the last ten posts sorted alphabetically in ascending order, the following will display their post date, title and excerpt:
<?php
$args = array( 'posts_per_page' => 10, 'order'=> 'ASC', 'orderby' => 'title' );
$postslist = get_posts( $args );
foreach ($postslist as $post) :  setup_postdata($post); ?> 
 <div>
  <?php the_date(); ?>
  <br />
  <?php the_title(); ?>   
  <?php the_excerpt(); ?>
 </div>
<?php endforeach; ?>

Random posts

Display a list of 5 posts selected randomly by using the MySQL RAND() function for the orderby parameter value:
<ul>
<?php
$args = array( 'posts_per_page' => 5, 'orderby' => 'rand' );
$rand_posts = get_posts( $args );
foreach( $rand_posts as $post ) : ?>
 <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>

Show all attachments

Do this outside any Loops in your template.
<?php
$args = array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' => 'any', 'post_parent' => null ); 
$attachments = get_posts( $args );
if ($attachments) {
 foreach ( $attachments as $post ) {
  setup_postdata($post);
  the_title();
  the_attachment_link($post->ID, false);
  the_excerpt();
 }
}
?>

Show attachments for the current post

Do this inside The Loop (where $post->ID is available).
<?php
$args = array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' =>'any', 'post_parent' => $post->ID ); 
$attachments = get_posts($args);
if ($attachments) {
 foreach ( $attachments as $attachment ) {
  echo apply_filters( 'the_title' , $attachment->post_title );
  the_attachment_link( $attachment->ID , false );
 }
}
?>

Get a post by its slug

Allows you to get a post ID by post slug. The caller_get_posts argument excludes sticky posts from this custom query.
<?php
$the_slug = 'my_slug';
$args=array(
  'name' => $the_slug,
  'post_type' => 'post',
  'post_status' => 'publish',
  'posts_per_page' => 1
);
$my_posts = get_posts($args);
if( $my_posts ) {
echo 'ID on the first post found '.$my_posts[0]->ID;
}
?>

Taxonomy Parameters

Show posts associated with certain taxonomy. If specifying a taxonomy registered to a custom post type then instead of using 'category' you would use '{custom_taxonomy_name}'. For instance, if you had a custom taxonomy called "genre" and wanted to only show posts from the "jazz" genre you would use the below code.
<?php
$args = array(
   'posts_per_page' => 8,
   'orderby' => 'rand',
   'post_type' => 'albums',
   'genre' => 'jazz',
   'post_status' => 'publish'
);
$show_albums = get_posts ( $args );
?>
Following example displays posts tagged with 'jazz', under 'genre' custom taxonomy, using 'tax_query':
$args = array(
 'tax_query' => array(
  array(
   'taxonomy' => 'genre',
   'field' => 'slug',
   'terms' => 'jazz'
  )
 )
);
$postslist = get_posts( $args );
Refer to the taxonomy parameters section of the WP_Query documentation for more examples.

Custom Field Parameters

Show posts associated with a certain custom field. Following example displays posts from the 'product' post type that have meta key 'featured' with value 'yes', using 'meta_query':

$args = array(
 'post_type' => 'product',
 'meta_query' => array(
  array(
   'key' => 'featured',
   'value' => 'yes',
  )
 )
 );
$postslist = get_posts( $args );

Convert an HTML Template to a WordPress Theme: How-

Though WordPress has a huge number of themes available, I often get clients asking me if it is possible to take a standard HTML / CSS template and transform it into a WordPress theme.The answer is yes, and to do the basic conversion, it is affordable and fast.The way I convert a template to a WordPress theme involves a few easy steps. In this post, I’ll explain how to get a simple conversion underway.
Step 1: Prepare
At this point, you should have an HTML file, a CSS file, and a directory of images for your template. Make any design changes now, because later you will need to edit more than one .html and one .css file. Where the main content of your page is, make sure there is only one ‘content block.’ You won’t need any others, as WordPress loops through this section to populate your page with posts.Once you have your design finalized, you are ready to cut that html file up into the component parts of your new WordPress theme.
Step 2: Slice ‘n’ Dice
Create a new directory for your theme. It is in this directory that you will place the PHP files, with content supplied by your converted template. Go through your HTML file, and mark each section in the file. The sections you are looking for are:
  • Header
  • Sidebar
  • Footer
  • Main Content (where your posts will go)
Mark the header, sidebar and footer sections with something like
1
<!-- HEADER STARTS/ENDS HERE -->
, and where your main content is, use
1
<!-- WP LOOP STARTS/ENDS -->
for the beginning and end of each section.Now create files called header.php, sidebar.php, and footer.php. Cut the code between the
1
<!-- -->
tags and paste it into the relevant files.Finally, take all the remaining code, and paste it into index.php. Replace the
1
<!-- SECTION STARTS HERE -->
tags for each section with the relevant php code:
1
<?php get_header();?>
or
1
<?php get_sidebar();?>
or
1
<?php get_footer();?>
Finally, copy your CSS file (rename it to style.css if necessary) and your image folder into your theme directory.
Step 3: Add a Dash of WordPress Code
Add the following to your header.php file:
1
2
3
<meta http-equiv="Content-Type"content="<?php bloginfo('html_type'); ?>;charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?><?php wp_title(''); ?> </title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"type="text/css" media="screen" />
You can find code to add to your sidebar and footer in the WordPress Codex.Lastly you need to add the WordPress Loop, the code which will generate all of your small business’ or personal blog content.Add the following above your
1
<!-- WP LOOP STARTS -->
comment in index.php:
1
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
Where the article title would be (usually inside h1 or h2 tags) you should add this code to get the page or post title:
1
<a title="Click to read: "<?php strip_tags(the_title()); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
And the following code should replace your sample article:
1
<?php the_content("Read more..."); ?>
Add all the following above your comment:
1
<?php endwhile; ?>
Navigation between articles can be added:
1
2
3
4
5
6
7
8
9
<!-- Article Navigation -->
<div class="navigation">
    <div class="alignleft">
        <?php posts_nav_link('','','« Previous Entries') ?>
    </div>
    <div class="alignright">
        <?php posts_nav_link('','Next Entries »','') ?>
    </div>
</div>
You can then add this code for anybody who has an outdated link to a post or page:
1
2
3
4
<?php else : ?>
    <h1>Error: Not Found</h1>
    <p>The page you were looking for is not here.</p>
<?php endif; ?>
Step 4: Install
Once this is done, save the page as index.php, single.php, and page.php. You can customize each of these to have different display elements for the main page (index.php), single post pages (single.php), and pages (page.php).There are many more ways you can customize your theme, by adding additional WordPress features (see the WordPress Codex for examples), but for now, either zip all your files and upload your theme with the Theme Installer, or copy your theme folder to your wp-content/themes/ folder in your installation of WordPress.
Step 5: Final Tweaks and Maintenance
Once the theme is copied or installed, CHMOD all files to allow you to edit them within the WordPress theme editor (Appearance -> Editor), and continue editing and tweaking until you are happy with your new theme.

Featured post

Life Infotech now a leading brand in the field of technology training

  Life Infotech now a leading brand in the field of technology training & its invites students around the nation to be a part of the Tra...