<a href="<?php the_permalink(); ?> "><?php the_post_thumbnail(); ?> </a> <a href="<?php the_permalink(); ?> "><strong><?php the_title(); ?> </strong></a> <p><a href="<?php the_permalink(); ?> "><?php echo get_the_box_excerpt(); ?> [...]</a></p> </div> <?php } ?> </div> </div> <?php get_footer();
<a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a> </span> <?php the_post_thumbnail(); ?> <p class="txt-destaque"><?php echo get_the_box_excerpt('160'); ?> </p> <a href="<?php the_permalink(); ?> " class="saiba-mais">Saiba Mais!</a> </li> <?php } ?> </ul> </div> <div class="col-4"><?php
function posts_recentes_categoria($atts) { // Attributes extract(shortcode_atts(array('posts' => '5', 'categoria' => ''), $atts)); // Code $output = '<div class="col-12"> <ul class="cat-grid">'; $the_query = new WP_Query(array('posts_per_page' => $posts, 'category_name' => $categoria)); while ($the_query->have_posts()) { $the_query->the_post(); $link = get_the_permalink(); $content = get_the_box_excerpt('146'); //get_the_excerpt(); $output .= '<li class="col-4 item"><div><figure class="thumbnail thumbnail__portfolio"> ' . get_the_post_thumbnail() . '</figure><div class="container caption"> <h2 class="title-destaque"><a href="' . $link . '">' . get_the_title() . '</a></h2><p class="txt-destaque">' . $content . '</p><a href="' . $link . ' "class="saiba-mais">Saiba Mais!</a> </div> </div> </li> '; //$output .= '<li class="col-4 item"><div><a href="'.$link.'" ><figure class="thumbnail thumbnail__portfolio">'.get_the_post_thumbnail().'</figure></a></div></li>'; wp_reset_postdata(); } $output .= '</ul>'; return $output; }
<figure class="thumbnail thumbnail__portfolio"> <?php the_post_thumbnail(); ?> <span class="zoom-icon"></span> </figure> <div class="container caption"> <h2 class="title-destaque"><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h2> <p class="txt-destaque"><?php echo get_the_box_excerpt('146'); ?> </p> <a href="<?php the_permalink(); ?> " class="saiba-mais">Saiba Mais!</a> </div> </div> </li> <?php } } ?>
function ll_related_posts() { $args = array('posts_per_page' => 4, 'post_in' => get_the_tag_list(), 'post_type' => array('cortinas', 'persianas')); $the_query = new WP_Query($args); while ($the_query->have_posts()) { $the_query->the_post(); ?> <div class="box-mini"> <?php if (has_post_thumbnail()) { ?> <a href="<?php the_permalink(); ?> "><?php the_post_thumbnail('related-post'); ?> </a> <?php } ?> <a href="<?php the_permalink(); ?> "><strong><?php the_title(); ?> </strong></a> <p><a href="<?php the_permalink(); ?> "><?php echo get_the_box_excerpt(); ?> ...</a></p> </div> <?php } echo '<div class="clear"></div></section>'; wp_reset_postdata(); }