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
<ul class="meta"> | |
<li>By | |
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"> | |
<?php the_author(); ?></a> | |
</li> | |
<li><?php the_time('F j, Y g:i a'); ?></li> | |
<li> | |
<?php | |
$categories = get_the_category(); | |
$separator = ", "; |
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 if(is_active_sidebar('sidebar')) : ?> | |
<?php dynamic_sidebar('sidebar'); ?> | |
<?php endif; ?> |
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
<a href="<?php echo get_author_posts_url( get_the_author_meta('ID')); ?>"><?php the_author(); ?></a> |
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 // Get all posts except Featured | |
$no_featured_query = new WP_Query(array( | |
'cat' => '-3', | |
)); ?> | |
<?php while($no_featured_query->have_posts()) : ?> | |
<?php $no_featured_query->the_post(); ?> | |
<!-- HTML here--> |
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 | |
$i = 0; // Counter | |
?> | |
<?php $featured_query = new WP_query(array( | |
'category_name' => 'featured' )); ?> | |
<?php while ($featured_query->have_posts()) : | |
$featured_query->the_post(); ?> |
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 the_time('F j, Y g:i a'); ?> |
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 // Get the list of categories to which the article belongs | |
$categories = get_the_category(); | |
$separator = ", "; | |
$output = ''; | |
if($categories) { | |
foreach($categories as $category) { | |
$output .= '<a href="'. | |
get_category_link($category->term_id).'">'. |
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
<!-- Get Archive Title --> | |
<?php if(is_category()) { | |
single_cat_title(); | |
} else if (is_author()) { | |
the_post(); | |
echo 'Archives By Author: ' .get_the_author(); | |
rewind_posts(); | |
} else if (is_tag()) { | |
single_tag_title(); |
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
// Widget Locations | |
function fc_init_widgets($id){ | |
register_sidebar(array( | |
'name' => 'Sidebar', | |
'id' => 'sidebar', | |
'before_widget' => '<div class="sidebar-widget">', | |
'after_widget' => '</div>', | |
'before_title' => '<h3>', | |
'after_title' => '</h3>' | |
)); |