<?php

get_page_header();
?>
<div class="well">
<?php 
$get_cat = get_query_var('cat');
$category = get_category($get_cat);
?>
    <div class="page-header">
        <h1>
            <span class="glyphicon glyphicon-<?php 
echo get_category_glyph($category);
?>
"></span> 
            <?php 
echo $category->name;
?>
        </h1>
    </div>
    <div class="row">
    <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        display_video_category();
    }
    the_posts_pagination(array('prev_text' => __('Previous page', 'ccsujournalism'), 'next_text' => __('Next page', 'ccsujournalism'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'ccsujournalism') . ' </span>'));
} else {
    echo "No results.";
}
Esempio n. 2
0
function show_posts($category)
{
    ?>
    <div class="col-md-6">
        <a href="./category/<?php 
    echo $category->slug;
    ?>
"><h1><span class="glyphicon glyphicon-<?php 
    echo get_category_glyph($category);
    ?>
"></span> <?php 
    echo $category->name;
    ?>
 </h1></a>
        <table class="table table-striped table-condensed">
            <?php 
    query_posts('category_name=' . $category->name . '&post_status=publish,future=&posts_per_page=5');
    ?>
            <?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
                    <tr>
                        <td>
                            <a href="<?php 
            the_permalink();
            ?>
"><?php 
            get_thumbnail();
            ?>
</a>
                        </td>
                        <td>
                            <b><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
 </b></a><br/>
                            <?php 
            the_excerpt();
            ?>
                            <div class="glyphs"> <?php 
            get_media_glyphs();
            ?>
 </div>
                        </td>
                    </tr>
                    <?php 
        }
    } else {
    }
    ?>
        </table>
    </div>
    <?php 
}