This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Template Name: Featured Blog with excerpts */ | |
/** | |
* Excerpt Length | |
* | |
*/ | |
function be_custom_excerpt_length( $length ) { | |
return 50; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is a sample function to illustrate your loop. | |
*/ | |
function your_function() { | |
$displayed_full_content = false; | |
$posts = new WP_Query( /* your query args here*/ ); | |
while ( $posts->have_posts() ) { |