This file contains hidden or 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
function jc_paged_posts_columns() { | |
echo '<div id="paged-columns">'; | |
global $post; | |
$numposts = 11; | |
$args = array( 'numberposts' => $numposts, 'offset' => 10 ); | |
$column1 = get_posts( $args ); | |
echo '<ul class="column-list">'; | |
echo '<li class="column-heading">Page 2</li><ol>'; | |
foreach ( $column1 as $post ) : setup_postdata($post); ?> | |
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> |
This file contains hidden or 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
// Edit term page | |
function summit_taxonomy_edit_meta_field($term) { | |
// put the term ID into a variable | |
$t_id = $term->term_id; | |
// retrieve the existing value(s) for this meta field. This returns an array | |
$term_meta = get_option( "taxonomy_$t_id" ); ?> | |
<tr class="form-field"> | |
<th scope="row" valign="top"><label for="term_meta[displayed]"><?php _e( 'Display Category', 'summit' ); ?></label></th> |
This file contains hidden or 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 tumble_menu( $args = array() ) { | |
/* Default arguments */ | |
$defaults = array( | |
'container' => 'ul', | |
'menu_class' => 'nav', | |
'menu_id' => 'top_nav', | |
'theme_location' => 'top-menu', | |
'echo' => false, | |
'before' => '', |
This file contains hidden or 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
// Function to display only upcoming events for Sugar Events Calendar on the main Events archive. | |
function sc_filter_events( $query ) { | |
if( is_post_type_archive('sc_event') && (!is_admin()) ) { | |
$meta = array( | |
array( | |
'key' => 'sc_event_date_time', | |
'value' => time(), |
NewerOlder