Last active
August 29, 2015 14:00
-
-
Save alenabdula/11159171 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo('charset'); ?>"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title> | |
<meta name="title" content="<?php wp_title( '|', true, 'right' ); ?>"> | |
<meta name="description" content="<?php bloginfo('description'); ?>" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/style.css" /> | |
<link rel="profile" href="http://gmpg.org/xfn/11" /> | |
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> | |
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" /> | |
<?php | |
/** | |
* this function is required by WordPress, it's used | |
* to output styles, script, and other content that it manages | |
*/ wp_head(); ?> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This function includes header.php | |
*/ get_header(); ?> | |
<body <?php body_class(); ?>> | |
<div class="wrap"> | |
<!-- WORDPRESS LOOP --> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<article <?php post_class() ?> id="post-<?php the_ID(); ?>"> | |
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> | |
<div class="entry"> | |
<?php the_content(); ?> | |
</div> | |
<footer class="postmetadata"> | |
<?php the_tags(__('Tags: '), ', ', '<br />'); ?> | |
<?php _e('Posted in'); ?> <?php the_category(', ') ?> | |
</footer> | |
</article> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<h2><?php _e('Nothing Found'); ?></h2> | |
<?php endif; ?> | |
<!-- END WORDPRESS LOOP --> | |
</div><!-- end .wrap --> | |
<?php | |
/** | |
* This function includes footer.php | |
*/ get_footer(); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Simple Blog Theme | |
Theme URI: http://# | |
Author: the author | |
Author URI: http://# | |
Description: description | |
Version: 1.0 | |
*/ | |
/* styles here */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alen-
Please pardon me, I am not close to understanding PHP yet. I am focused on learning it though. I appreciate you and what ever help you choose to teach.
Mike