kisukedeath

Custom Post Type UI - Sub categories - Taxonomy

Feb 24th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.15 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Almacenes
  4. */
  5. ?>
  6. <?php get_header() ?>
  7.  
  8. <div id="contenedor">
  9.         <div id="contenido">    
  10.             <article class="pos">
  11.             <?php query_posts("posts_per_page=3&post_type=trabajador&taxonomy=subcategorias&term=almacenes&paged=$paged"); ?>
  12.             <?php while ( have_posts() ) : the_post() ?>
  13.             <div id="post-<?php the_ID() ?>" class="post">
  14.             <h1 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title() ?>" rel="bookmark"><?php the_title() ?></a></h1>
  15.             <div class="box-content">
  16.             <figure class="post-img"><?php
  17.             if ( has_post_thumbnail() ) {
  18.             the_post_thumbnail();
  19.             }
  20.             ?></figure>
  21.             <div class="post-content">
  22.             <p><?php echo substr(get_the_excerpt(),0,250); ?>...</p>
  23.             <a class="button2" href="<?php echo get_permalink(); ?>">Leer m&#225;s »</a>
  24.             </div>
  25.             </div>
  26.             </div><!-- .post -->
  27.             <?php endwhile ?>
  28.             </article>
  29.  
  30.         <?php include('widgets.php'); ?>
  31.     </div>
  32.  </div>
  33.  
  34.  
  35.  
  36. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment