Пример #1
0
function fancified_the_excerpt($content) {
    fancy_excerpt(35, null, null, null, 'entry-excerpt');
}
Пример #2
0
             
             while ($my_query->have_posts()) : $my_query->the_post();
                 $carousel_counter++; 
                 $cat = get_the_category();
 
                 if ( get_header_image() ) : ?>
                 
                     <li class="carousel-item carousel-item-<?php echo $carousel_counter; ?> <?php if ($carousel_counter == $carousel_total) { echo "carousel-item-last"; } ?> clearfix">
                         <div class="carousel-item-container" style="background: url('http://placehold.it/960x250') 100% 50% no-repeat; ">
                             <div class="carousel-item-content">
                                 <!--
                                     div class="carousel-item-category-container"><a class="carousel-item-category-link" href="<?php echo $cat[0]->slug; ?>/" title="View articles listed under <?php echo $cat[0]->cat_name; ?>"><?php echo strtolower($cat[0]->cat_name); ?></a></div
                                 -->
                                 <h2><?php the_title(); ?></h2>
                                 <div class="">
                                     <?php fancy_excerpt(12, null, null, null, 'teaser-excerpt') ?>
                                 </div>
                                 <div class="more">More</div>
                             </div>
                         </div>
                    </li>
                    
                 <?php endif; ?>
                 
             <?php endwhile; ?>
         </ul>
     </div>
 </div><!-- #masthead -->
 
 <?php endif; ?>