?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
        <!-- print out categories-->
        <?php 
//get the current category of the blog post and comma seperate it
$categories_list = get_the_category_list(esc_html__(', ', 'lyndascore'));
//tests to see if there is more than one category
if ($categories_list && lyndascore_categorized_blog()) {
    printf('<div class="category-list">' . esc_html__('Posted in %1$s', 'lyndascore') . '</div>', $categories_list);
    // WPCS: XSS OK.
}
?>

		<?php 
the_title('<h1 class="entry-title">', '</h1>');
?>

		<div class="entry-meta">
			<?php 
lyndascore_posted_on();
//link for comments
if (is_single() && !post_password_required() && (comments_open() || get_comments_number())) {
    echo '<span class="comments-link">';
Ejemplo n.º 2
0
				<div class="page-content">
					<p><?php 
esc_html_e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'lyndascore');
?>
</p>

					<?php 
get_search_form();
?>

					<?php 
the_widget('WP_Widget_Recent_Posts');
?>

					<?php 
if (lyndascore_categorized_blog()) {
    // Only show the widget if site has multiple categories.
    ?>
					<div class="widget widget_categories">
						<h2 class="widget-title"><?php 
    esc_html_e('Most Used Categories', 'lyndascore');
    ?>
</h2>
						<ul>
						<?php 
    wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10));
    ?>
						</ul>
					</div><!-- .widget -->
					<?php 
}