No longer kept up to date.
Please see Sridhar's fork.
<?php | |
/* Template Name: Test */ | |
/** | |
* Genesis custom loop | |
*/ | |
function be_custom_loop() { | |
global $post; | |
// arguments, adjust as needed |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
// Remove Jetpack module from Dashboard for non-admins | |
function ap_remove_jetpack_page( ) { | |
if ( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) { | |
remove_menu_page( 'jetpack' ); | |
} | |
} | |
add_action( 'admin_menu', 'ap_remove_jetpack_page', 999 ); | |
// Disable OpenGraph in Jetback as written here: http://yoast.com/jetpack-and-wordpress-seo/ | |
add_filter( 'jetpack_enable_opengraph', '__return_false', 99 ); |
No longer kept up to date.
Please see Sridhar's fork.
<?php | |
// Don't include the above. | |
add_filter( 'genesis_get_image_default_args', 'prefix_stop_auto_featured_image' ); | |
/** | |
* Stop Genesis archives from using first attached image as fallback when no featured image is set. | |
* | |
* @param array $args Default image arguments. | |
* |
<?php | |
/** | |
* Template Loader for Plugins | |
* | |
* @package Template_Loader_For_Plugins | |
* @author Gary Jones | |
* @link http://gamajo.com/template-loader | |
* @copyright 2013 Gary Jones | |
* @license GPL-2.0+ | |
*/ |
add_filter( 'manage_edit-post_columns', 'aco_last_modified_admin_column' ); | |
// Create the last modified column | |
function aco_last_modified_admin_column( $columns ) { | |
$columns['modified-last'] =__( 'Last Modified', 'aco' ); | |
return $columns; | |
} | |
add_filter( 'manage_edit-post_sortable_columns', 'aco_sortable_last_modified_column' ); |
//* Filter the property details array | |
add_filter( 'agentpress_property_details', 'agentpress_property_details_filter' ); | |
function agentpress_property_details_filter( $details ) { | |
$details['col1'] = array( | |
__( 'Price:', 'agentpress' ) => '_listing_price', | |
__( 'Address:', 'agentpress' ) => '_listing_address', | |
__( 'City:', 'agentpress' ) => '_listing_city', | |
__( 'State:', 'agentpress' ) => '_listing_state', | |
__( 'ZIP:', 'agentpress' ) => '_listing_zip', |
<?php | |
/** | |
* Get post image. | |
*/ | |
function wds_get_post_image( $size = 'thumbnail' ) { | |
// If featured image is present, use that | |
if ( has_post_thumbnail() ) { | |
return get_the_post_thumbnail( $size ); |