Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * category
- */
- get_header('');
- ?>
- <div class="menu-superior-2">
- <div class="menu-sub-category">
- <ul>
- <?php wp_list_cats('child_of=3'); ?>
- </ul>
- </div>
- </div>
- <div id="category-home-content">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <?php in_category( $category, $_post ) ?>
- <div class="category-home-posts">
- <h1 class="entry-title-category"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
- <!--DATOS Y ETIQUETA-->
- <!--Codigo Categorias-->
- <div class="meta-category">
- Categorías: <?php the_category(' • '); ?>
- </div>
- <!--custom field-->
- <div class="post-custom-field-category foto-category">
- <?php $foto = get_post_meta($post->ID, 'foto', true); ?>
- <?php if($foto): ?>
- <a href="<?php the_permalink() ?>">
- <img src="<?php echo $foto ?>" alt="imagen principal post" width="180" height="160"/>
- </a>
- <?php endif; ?>
- </div>
- <p>
- <?php echo recortar_texto(get_the_excerpt(''),100); ?>
- </p>
- <!--LEER MÁS-->
- <div class="more-link"><a href="<?php the_permalink() ?>">ver +</a></div>
- </div>
- <?php endwhile; else: ?>
- <?php endif; ?>
- </div>
- <?php get_sidebar('links-footer'); ?>
- </div>
- <?php get_footer(''); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement