Genesis March Madness: College Basketball Pick'em Tourney
So, just a LATE shot in the dark and not sure if anyone will sign up, I created a March Madness Tourney Bracket on Yahoo! (yes, I am sorry that Google hasn't created such apps yet...).
Anyways, here's the Bracket SCORING:
- Round of 64: 1pt
- Round of 32: 2pts
- Sweet 16/Reg. Semis: 4pts
- Elite 8/Reg. Finals: 6pts
- Final Four/Semifinals: 10pts
- Final/Championship: 16pts
Bonus Points = Seed differiential for UPSETS!! Seed diference multipliers put heavy emphasis on big upsets in early rounds.
Signup here
Password: genesiswp
Get Genesis Comments in a Shortcode
Recently, I corresponded with someone who need to port the Genesis comments into a shortcode for a custom post type template (I'm assuming). However, doing it seemed challenging and a lot of hack work, but he reminded me of the genesis template part, which made it very doable.
Since I thought this was fairly novel idea, I thought I'd post about here.
[php]
remove_action( 'genesis_after_post', 'genesis_get_comments_template' );
function ts_genesis_comments_shortcode() {
ob_start();
genesis_get_comments_template();
$tsComments = ob_get_clean();
return $tsComments;
}
add_shortcode ('ts-genesis-comments', 'ts_genesis_comments_shortcode');
[/php]
First we need to remove the comments template via remove_action( 'genesis_after_post', 'genesis_get_comments_template' );
. Then we can get the comments via output buffering (ob_start() and ob_get_clean()).
[Infographic] Pagely WordPress Top40
How to Move the Comment Form Above the Comments List in Genesis
This is extremely easy and only involves only a few lines of code that can go into functions.php.
[php]
add_action( 'genesis_before_comments' , 'wps_post_type_check' );
function wps_post_type_check () {
if ( is_single() ) {
if ( have_comments() ) {
remove_action( 'genesis_comment_form', 'genesis_do_comment_form' );
add_action( 'genesis_list_comments', 'genesis_do_comment_form' , 5 );
}
}
}
[/php]
If you do not check for comments, then simply removing the form and adding it at the top of the list will remove the form altogether on single pages/posts that have no comments. We do this with a simple function, have_comments().
- « Previous Page
- 1
- …
- 21
- 22
- 23
- 24
- 25
- …
- 60
- Next Page »