The complete list of template files recognized by WordPress can be found at codex.wordpress.org.
<?php
/*
* Template Name: Type Name Here
* Description: Type description here
*/
get_header(); ?>
The above is an example of code that pulls in the header template file.
The above MUST be included in the wp_header file and the wp_footer file
<img src="images/banner.png" alt="banner" />
becomes
<img src="<?php echo get_template_directory_uri(); ?>/images/
banner.png" alt="banner" />
<link href="style.css" rel=“stylesheet">
becomes
<link href="<?php bloginfo('stylesheet_url');?>" rel="stylesheet" />
<title><?php global $page, $paged; wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
/*
Theme Name: theme_name_here
Author: your_name
Author URI: website_where_to_find_you
Description: This is a theme …
Version: 1.0
*/
The above is required in your CSS file
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
the_title();
the_content();
} // end while
} // end if
?>