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 | |
/* ------ [ "FeedGator" Rss Aggregator ] ------ */ | |
function rss_agg($feed,$num,$desc) { | |
include_once(ABSPATH . WPINC . '/feed.php'); | |
$rss = fetch_feed($feed); | |
if(!empty($rss)): | |
$maxitems = $rss->get_item_quantity($num); | |
$rss_items = $rss->get_items(0, $maxitems); | |
endif; |
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
/** | |
* | |
* Return string with quotation marks | |
* | |
* @author Joshua Nelson | |
* @link http://joshuadnelson.com | |
* | |
*/ | |
function jdn_add_quotation( $string ) { | |
if( !empty( $string ) ) { |
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 | |
/** | |
* Project Quote | |
* | |
*/ | |
function be_project_quote() { | |
global $wp_query, $be_testimonials; | |
if( !( ( 5 < $wp_query->found_posts && 5 == $wp_query->current_post ) || ( $wp_query->current_post == ( $wp_query->found_posts - 1 ) && 5 > $wp_query->found_posts ) ) ) | |
return; |
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 | |
/** | |
* | |
* Force Default Robot Options on Post Type ('post' in this case) | |
* | |
* @author: Joshua Nelson | |
* @link: http://joshuadnelson.com | |
* | |
*/ |
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 | |
/** | |
* | |
* Remove Links from Post Titles in Genesis | |
* | |
* @author Joshua Nelson | |
* @link http://joshuadnelson.com | |
* | |
*/ |
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 | |
/** | |
* | |
* Remove default taxonomies | |
* | |
* @link http://w4dev.com/wp/remove-taxonomy/ | |
* | |
*/ | |
add_action( 'init', 'unregister_taxonomy'); |
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 | |
/** | |
* Place this into your functions file | |
* | |
*/ | |
unregister_sidebar( 'sidebar-alt' ); | |
genesis_register_sidebar( | |
array( | |
'id' => 'sidebar-alt', |
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
/** | |
* | |
* Styles for Social Media Icons for Genesis | |
* | |
*/ | |
.sidebar ul.socials, | |
ul.socials { | |
list-style-type: none; | |
float: right; |
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 | |
$layouts = genesis_get_layouts(); | |
foreach( $layouts as $layout => $value ) { | |
$layout_options[] = $layout; | |
} | |
print_r( $layout_options ); |
OlderNewer