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
<p> | |
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?>: </label> | |
<input type="text" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $instance['title']; ?>" /> | |
</p> | |
<p><!-- this adds the category option to the widget's form --> | |
<label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category ID','dbem'); ?>: </label> | |
<input type="text" id="<?php echo $this->get_field_id('category'); ?>" name="<?php echo $this->get_field_name('category'); ?>" size="3" value="<?php echo $instance['category']; ?>" /><br /> | |
<label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('(separate multiple IDs by commas, or use "0" for all categories)','dbem'); ?> </label> | |
</p> | |
<p> |
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
<div style="text-align: center;"> | |
<a href="http://s0.videopress.com/player.swf?guid=U0t5LnWv&v=1.03" | |
data-lightbox="width:640;height:480"> | |
<img title="Seasons screenshot" src="http://blackhillswebworks.com/wp-content/uploads/2012/01/seasons-screenshot.jpg" | |
alt="Seasons screenshot" width="400" height="286" /> | |
</a> | |
</div> |
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
<div style="text-align: center;"> | |
<a title="Seasons" href="#U0t5LnWv" data-lightbox=""> | |
<img title="Seasons" src="http://blackhillswebworks.com/wp-content/uploads/2012/01/seasons-screenshot.jpg" | |
alt="Seasons screenshot" width="400" height="286" /> | |
</a> | |
</div> | |
<div style="display: none;"> | |
<div id="U0t5LnWv" style="width: 633px; height: 475px; overflow: hidden;"> | |
[wpvideo U0t5LnWv w=633 h=475] |
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
/** Added the following to limit the number of post revisions */ | |
define('WP_POST_REVISIONS', 3); |
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
'scope' => 'future', | |
'category' => 0, // this adds 'category' to the widget's function | |
'order' => 'ASC', |
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
include_once("widgets/em-events-by-category.php"); |
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
DELETE a,b,c | |
FROM wp_posts a | |
LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) | |
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id) | |
WHERE a.post_type = 'revision' |
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
$prefix = '_bhww_sw_'; // Prefix for all fields | |
function bhww_sw_sermons_metaboxes( $meta_boxes ) { | |
global $prefix; | |
$meta_boxes[] = array( | |
'id' => 'bhww_sw_metabox', | |
'title' => 'Sermon Information', | |
'pages' => array('sw_sermon'), // post type | |
'context' => 'normal', | |
'priority' => 'high', | |
'show_names' => true, // Show field names on the left |
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 the Loop | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'my_cpt_taxonomy_custom_loop' ); | |
function my_cpt_taxonomy_custom_loop() { | |
global $paged; | |
global $query_args; // any wp_query() args | |
// Get term |
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
// Execute late to catch 'clone' and 'new draft' (Duplicate Post plugin) | |
add_filter( 'post_row_actions', 'bhww_core_remove_quick_edit_options', 100, 2 ); | |
add_filter( 'page_row_actions', 'bhww_core_remove_quick_edit_options', 100, 2 ); | |
function bhww_core_remove_quick_edit_options( $actions, $post ) { | |
if ( current_user_can( 'update_core' ) ) | |
return $actions; | |
global $post; |