Day: December 22, 2016 Archives
Creating WordPress Theme – The Index File Loop
I’m using the index file for this example. Though it might be best to put this code in other PHP file in your theme. We will just directly use the index file for simplicity. 1 <?php get_header(); ?> 2 <section> 3 <aside> 4 </aside> 5 <?php if( have_posts()) : while(have_posts()) : the_post(); ?> 6 <article> […]
Creating WordPress Theme – Inside Header File
You’ll probably notice that the header.php file lacks meta tags as this article will be more focus on using WP(WordPress) functions. 1 <!DOCTYPE html> 2 <html <?php language_attributes(); ?>> 3 <head> 4 <meta charset=”<?php bloginfo( ‘charset’ ); ?>”/> 5 <title><?php bloginfo( ‘name’ ); ?> | <?php is_front_page() ? bloginfo( ‘description’ ) : wp_title(); ?></title> 6 <link rel=”stylesheet” type=”text/css” href=”<?php […]