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 | |
function shortcode_function( $params ) { | |
return "Shortcode content"; | |
} | |
add_shortcode( 'shortcode_name', 'shortcode_function' ); | |
?> |
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
.entry-content img { | |
box-shadow: 0px 0 15px 5px #ccc; | |
} | |
.entry-content .wp-caption-text { | |
text-align: center; | |
} |
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_filter( 'plugin_row_meta', 'plugin_appreciation_links', 10, 4 ); | |
function plugin_appreciation_links ( $plugin_meta = array(), $plugin_file = '', $plugin_data = array(), $status = '' ) { | |
$plugin_slug = 'seriously-simple-podcasting'; | |
$donate_link = 'http://www.hughlashbrooke.com/donate'; | |
if( ! isset( $plugin_data['slug'] ) || $plugin_slug != $plugin_data['slug'] ) { | |
return $plugin_meta; |
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( 'ssp_feed_number_of_posts', 'ssp_modify_number_of_posts_in_feed' ); | |
function ssp_modify_number_of_posts_in_feed ( $n ) { | |
return 25; // Where 25 is the number of episodes that you would like to include in your RSS feed | |
} |
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( 'ssp_use_post_tags', '__return_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
global $ss_podcasting; | |
$audio_player = $ss_podcasting->episode_meta( $episode_id ); |
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
#007C59,#FCB514,#E23D28,#FFFFFF,#0C1C8C,#FFFFFF,#0C1C8C,#FCB514 |
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
#42A2CE,#255A8C,#71B02F,#FFFFFF,#255A8C,#E6E6E6,#71B02F,#71B02F |
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( 'init', 'add_speakerdeck_oembed' ); | |
function add_speakerdeck_oembed() { | |
wp_oembed_add_provider( 'https://speakerdeck.com/*/*', 'https://speakerdeck.com/oembed.json' ); | |
} |
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
/* | |
* Custom CSS for WordCamp Cape Town 2014 | |
* Base theme: Twenty Twelve | |
*/ | |
/* Menu tickets link highlight (change ID once menu item is live) */ | |
#menu-item-283629 a { | |
font-weight: bold; | |
color: #d54e21; | |
border-bottom: 2px solid #d54e21; |