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 $loop_2 = new WP_Query( 'cat=1&showposts=2&orderby=date&order=DESC' ); while ($loop_2->have_posts()) : $loop_2->the_post(); ?> | |
<div <?php post_class(); ?>> | |
<div class="column-5 left"> | |
<a href="<?php the_permalink(); ?>" /><?php the_post_thumbnail( 'thumbnail', array( 'class' => 'featured-image' ) ); ?></a> | |
<a href="<?php the_permalink(); ?>" /><span class="read-more">Read More</span></a> | |
</div> | |
<div class="column-6 right"> | |
<h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> |
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 | |
/** | |
* Adds Radio Latest News Widget. | |
* | |
* @package Radio | |
* @package Widgets | |
* @author Greg Rickaby, Justin Sternberg (@Jtsternberg), Travis Smith (@wp_smith), and StudioPress | |
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) | |
* @link http://www.studiopress.com/themes/genesis | |
*/ |
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 | |
/** | |
* File mod_jock.php | |
* | |
* This file builds the Jock Rotator. The Jock Rotator is nothing more than a PHP Case Statement. | |
* It reads your server's time/date and asks: "Is it before 10:00am? Yes? Then display this jock." | |
* | |
* @version 2.5.0 | |
* @author Greg Rickaby <[email protected]> | |
* @copyright Copyright (c) 2012 |
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
add_filter( 'genesis_comment_form_args', 'child_comment_form' ); | |
/** | |
* Change "Post Comment" button text. | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_comment_form($args) { | |
$args = array ( | |
'label_submit' => __( 'Submit', 'genesis' ), |
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 | |
/** | |
* Functions.php | |
* | |
* This file handles the child theme setup and intialization. | |
* | |
* @category FMG | |
* @package Functions | |
* @author Greg Rickaby | |
* @since 1.0.0 |
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
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
add_action( 'genesis_before_post_content', 'child_post_info' ); | |
/** | |
* Custom Post-Info with Google Rich Snippet support | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_post_info() { | |
if ( is_page() ) |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below into functions.php | |
/** | |
* Manage WooCommerce styles and scripts. | |
*/ | |
function grd_woocommerce_script_cleaner() { | |
// Remove the generator tag | |
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below into functions.php | |
/** | |
* Remove all WooCommerce scripts and styles! Forever! | |
* | |
* @author WP Smith | |
* @since 1.0.0 | |
*/ | |
function grd_remove_woocommerce_styles_scripts() { |
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 | |
$odd_or_even = 'even'; | |
$args = array( | |
'cat' => 1, | |
'posts_per_page' => 2, | |
'order' => 'DESC' | |
); | |
$query = new WP_Query( $args ); | |
if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); |
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
add_action( 'thesis_hook_byline_item', 'custom_byline' ); | |
/** | |
* Custom Post-Info with Google Rich Snippet support | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function custom_byline() { | |
if ( is_page() ) | |
return; // don't do post-info on pages ?> |
OlderNewer