예제 #1
0
               <?php 
     if (has_post_thumbnail()) {
         ?>
                 <?php 
         the_post_thumbnail('medium');
         ?>
               <?php 
     }
     ?>
             </div>
             <div class="resumo-wrapper paragrafo">
               <?php 
     the_excerpt_max_charlength(290);
     ?>
               <?php 
     echo new_excerpt_more("Leia mais");
     ?>
             </div>
           </div>
           <div class="w-embed">
             <hr>
           </div>
         </div>
       <?php 
 }
 ?>
       <nav id="pagination" class="container">
         <?php 
 /*
 <a href="" >1</a>
 <span></span>
예제 #2
0
        ?>
</span>

							<?php 
        if ($more_post) {
            ?>
								<span class="readmore"><a href="<?php 
            the_permalink();
            ?>
">Детальніше</a></span>
							<?php 
        }
        ?>

							<!--<?php 
        new_excerpt_more();
        ?>
-->
						</div>
					</div> <!-- /article -->

				<?php 
    }
}
?>

				<div class="well well-sm">
					<a href="/news">Читати всі події &#8594;</a>
				</div>
			</div>
예제 #3
0
    } else {
        if ($i == 2) {
            echo '<span class="col-right s4">';
        }
        ?>
<article class="clr col-small">
	<h3><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
	<p>
		<?php 
        $contents = get_the_content();
        $excerpt = wp_trim_words($contents, ot_get_option('excerpt-length'), '');
        echo $excerpt . new_excerpt_more('...');
        ?>
	</p>

</article>
<?php 
    }
}
if ($i > 1) {
    echo '</span>';
}
예제 #4
0
/**
 * THE EXCERPT FILTERS
 * 
 * This group of functions will make a new controllable excerpt
 *  called nano_excerpt()
 * 
 * Source: Codex - http://codex.wordpress.org/Function_Reference/the_excerpt
*/
function nano_excerpt($limit = 75)
{
    $limited_excerpts = wp_trim_words(get_the_excerpt(), $limit, new_excerpt_more());
    echo $limited_excerpts;
    return $limited_excerpts;
}