hangar-wp-theme/category-news.php

59 lines
1.2 KiB
PHP
Raw Normal View History

2021-02-18 14:09:56 +01:00
<?php get_header(); ?>
<!-- index categories-->
<div id="main" class="maingran">
<div id="content" class="indexall">
<!-- la primera caixa és la de títol i descripció de la categoria i pot portar publicitat, no fons blanc-->
<ul>
<li id="postt-<?php the_ID(); ?>" <?php echo 'class ="boxentry ie catt nofons"'; ?>>
<?php echo '<h2 class="box index">';
echo single_cat_title( '', false ) ; echo '</h2>' ; ?>
<?php $category_description = category_description();
if ( ! empty( $category_description ) ) :
echo '<div class="descseccio">'. category_description(). '</div>';
endif;
?>
<p class="textanunci"></p>
<!-- </div> .entry-content -->
</li><!-- post .hentry -->
</ul>
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
$tipus = 'catt'; ?>
<?php $category = get_the_category(); ?>
<?php include(TEMPLATEPATH . "/caixes.php"); ?>
<?php endwhile; ?>
</ul>
<?php wp_pagenavi(); ?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div><!-- .content -->
</div>
<!--end Content-->
</div>
<!--end Main-->
<?php get_footer(); ?>