This file contains hidden or 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 | |
/* | |
Description: Top message sidebar with the Genesis Framework | |
*/ | |
genesis_register_sidebar( array( | |
'id' => 'top-message', | |
'name' => __( 'Top Message', 'themename' ), | |
'description' => __( 'This is the top of site message widget area.', 'themename' ), | |
) ); |
This file contains hidden or 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 | |
/*enable shortcode in text widget*/ | |
add_filter('widget_text', 'do_shortcode'); |
This file contains hidden or 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 | |
/* | |
Author: Doug Edgington | |
Description: Shortcode to output recent posts from one category | |
*/ | |
function dee_display_recent_posts() { | |
$args = array( | |
'post_type' => 'post', | |
'posts_per_page'=> 5, | |
'cat'=> 4, |
This file contains hidden or 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 | |
/* | |
Author: Doug Edgington | |
Description: Shortcode to output custom post type in a grid | |
*/ | |
function dee_display_bios() { | |
$args = array( | |
'post_type' => 'dee_bios', | |
'orderby' => 'title', |
NewerOlder