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: Residential Portfolio | |
* | |
*/ | |
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_do_press_loop' ); // Add custom loop | |
function custom_do_press_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_action( 'pre_get_posts', 'test_per_dic' ); | |
/** | |
* Exclude Category from Blog | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @param object $query data | |
* | |
*/ | |
function test_per_dic( $query ) { |
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 | |
/** | |
* Metaboxes | |
* | |
* This file registers any custom metaboxes | |
* | |
* @package Core_Functionality | |
* @since 1.0.0 | |
* @link https://github.com/billerickson/Core-Functionality | |
* @author Bill Erickson <bill@billerickson.net> |
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 Project Information After Content */ | |
add_action ( 'genesis_sidebar', 'mmi_sing_project_side' ); | |
function mmi_sing_project_side() { | |
echo '<div class="mmi-sidebar">'; | |
echo '<section class="widget">'; | |
echo '<h4 class="widgettitle">Participate In This Project</h4>'; | |
$participants = get_post_meta(get_the_ID(), 'participants_needed', false); |
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 | |
/** | |
* Customize Product Category Query | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
*/ | |
function be_product_category_query( $query ) { | |
if( $query->is_main_query() && !is_admin() && $query->is_tax( 'product-category' ) ) { | |
$query->set( 'orderby', 'title' ); |
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_before_loop', 'child_maybe_do_grid_loop' ); | |
function child_maybe_do_grid_loop() { | |
// Amend this conditional to pick where this grid looping occurs | |
if ( is_page('2') ) { | |
remove_action('genesis_before_post_content', 'genesis_post_info'); |
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 | |
/** Start the engine */ | |
require_once( get_template_directory() . '/lib/init.php' ); | |
/** Child theme (do not remove) */ | |
define( 'CHILD_THEME_NAME', 'Sample Child Theme' ); | |
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/genesis' ); | |
/** Add Viewport meta tag for mobile browsers */ | |
add_action( 'genesis_meta', 'add_viewport_meta_tag' ); |
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
/** Customize Blog Post Content */ | |
function atb_test( $content ) { | |
global $post; | |
if( ! ( in_array( 'feature', get_post_class() ) || in_array( 'one-third', get_post_class() ) ) | |
return $content; | |
// First Page Classes | |
if( ! $wp_query->query_vars['paged'] ) { | |
// Features |
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: Author Page | |
*/ | |
get_header(); ?> | |
<div id="container"> | |
<div id="content" class="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 | |
/* | |
Template Name: Books LATEST | |
*/ | |
/** | |
* Modify Post Navigation | |
* @since 1.0.0 | |
* | |
* |