http://lbdesign.tv
[email protected]
http://designack.com
[email protected]
twitter @ngaireackerley
Linkedin Ngaire Ackerley
Balance: In WordPress and Web design
Grids
• Great starting point
• Can overlap columns/rows
Including various content into web pages
get_template_part;
get_pages(include = 39’);
include(‘breadcrumbs.php);
Widgets
//custom excerpt lengths
function wpe_excerptlength_teaser( $length ) {
return 23;
}
function wpe_excerptmore($more) {
return ‘ ...
’ . __( ‘Read more »’, ‘twentyten’ ) . ‘’;
}
function wpe_excerpt($length_callback=’’, $more_callback=’’) {
global $post;
if(function_exists($length_callback)){
add_filter(‘excerpt_length’, $length_callback);
}
if(function_exists($more_callback)){
add_filter(‘excerpt_more’, $more_callback);
}
$output = get_the_excerpt();
$output = apply_filters(‘wptexturize’, $output);
$output = apply_filters(‘convert_chars’, $output);
$output = ‘
’.$output.’
’;
echo $output; }
Example: Balance with custom
excerpt lengths