WP Smith

Creating WordPress & Genesis Websites Since 2010

  • Home
  • About
  • Services
  • Blog
  • Contact

Mar 19 2012

[Infographic] Move to WordPress.org (self-hosted)?

Move to WordPress.org (self-hosted)?
Move to WordPress.org (self-hosted)? Click for Larger Image

Written by Travis Smith · Categorized: Infographic, WordPress

Mar 13 2012

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:
Yahoo! Tourney Pick'em

  • 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

Written by Travis Smith · Categorized: WordPress

Mar 13 2012

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()).

Written by Travis Smith · Categorized: Genesis

Mar 12 2012

[Infographic] Pagely WordPress Top40

Pagely WordPress Top40
Pagely WordPress Top40 Click for Larger Image

Written by Travis Smith · Categorized: Infographic, WordPress

Mar 05 2012

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().

Written by Travis Smith · Categorized: Genesis

  • « Previous Page
  • 1
  • …
  • 21
  • 22
  • 23
  • 24
  • 25
  • …
  • 60
  • Next Page »

Need Help?

Please let us know how we can help you!

Get Help

Recommendations

Genesis WordPress Framework
Sucuri Security
Gravity Forms
GetSoliloquy
Get Envira
Scribe SEO
BackupBuddy
WordPress Video User Manuals

Recent Posts

  • Solving WordPress 5XX Server Errors on SiteGround
  • Hiding an User in the WordPress Admin
  • Custom Rewrite Rules for Custom Post Types and Taxonomies
  • WordPress JavaScript Manager Native Functions
  • Causes of WordPress Site Performance Slowdown

About Travis

As a WordPress enthusiast, developer, and speaker, Travis writes about what he learns in WordPress trying to help other WordPress travelers, beginners and enthusiasts with tutorials, explanations, & demonstrations.

  • Twitter
  • Facebook
  • LinkedIn
  • Google+
  • RSS

Copyright © 2025 � WP Smith on Genesis on Genesis Framework � WordPress � Log in