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 copy the opening php tag above | |
/** | |
* Add Category and Tag Heading to Each Page in Pagination | |
* | |
* @package Category and Tag Headings on all archive pages | |
* @author Neil Gee | |
* @link http://coolestguidesontheplanet.com/displaying-category-headings-category-archive-pages-genesis/ | |
* @copyright (c) 2014, Neil Gee |
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 | |
/* | |
Template Name: Contact | |
*/ | |
//* Add custom body class of "contact" to the head | |
add_filter( 'body_class', 'odg_body_class' ); | |
function odg_body_class( $classes ) { |
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 | |
/** | |
* To display entries from a Custom Post Type on site's front page in a 3-column responsive grid. | |
* URL: http://sridharkatakam.com/front-page-template-to-show-cpt-entries-in-a-3-column-grid-in-genesis/ | |
*/ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'sk_do_loop' ); | |
/** |
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 a slider to the home page, if there is one to add | |
* | |
* @link http://blackhillswebworks.com/?p=4986 | |
*/ | |
add_action( 'genesis_before_content', 'metro_home_add_soliloquy_slider' ); | |
function metro_home_add_soliloquy_slider() { | |
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 | |
add_action( 'genesis_entry_content', 'theme_prefix_address' ); | |
/** | |
* | |
* Display an address using | |
* Genesis column classes and ACF. | |
* | |
* @author Angie Meeker | |
* @uses Advanced Custom Fields | |
*/ |
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 $current_date = date("Y-m-d H:i:s"); ?> | |
<?php $efeed = new WP_Query( array( | |
'post_type' => 'tribe_events', | |
'showposts' => 10, | |
'eventDisplay' => 'custom', | |
'start_date' => $current_date, | |
'end_date' => $current_date | |
)); | |
?> |
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
/* Column Classes | |
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.one-fourth, | |
.one-half, | |
.one-sixth, | |
.one-third, |