function pixelhappy_post_info() { if (is_page()) { return; } // don't do post-info on pages genesis_post_info(); }
/** * Default post info output. * * @since 1.0.0 * * @param object $post The current post object. * @param object $context The global post object. * @param array $args The instance args. */ function mm_posts_output_post_info($post, $context, $args) { $custom_output = apply_filters('mm_posts_post_info', '', $post, $context, $args); if ('' !== $custom_output) { echo $custom_output; return; } echo '<span class="entry-info-wrap">'; // If the site is running Genesis, use the Genesis post info. if (function_exists('genesis_post_info')) { genesis_post_info(); } else { echo '<span class="entry-info">'; $format = get_option('date_format'); $time = get_the_date($format); printf('<time class="%s" itemprop="datePublished">%s</time>', 'entry-time', $time); printf(' %s ', __('by', 'mm-components')); printf('<a class="%s" href="%s">%s</a>', 'entry-author', get_author_posts_url(get_the_author_meta('ID')), get_the_author()); echo '</span>'; } echo '</span>'; }
/** * Wrapper for the Genesis post info function which has no method to return. * * @since 0.1.0 * @access public * @return string */ function genlib_get_post_info() { ob_start(); genesis_post_info(); return ob_get_clean(); }
<header class="entry-header"> <h2 class="entry-title"> <a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a> </h2> <?php genesis_post_info(); ?> </header> <?php do_action('genesis_before_entry_content'); ?> <?php printf('<div %s>', genesis_attr('entry-content')); ?> <?php do_action('genesis_entry_content'); ?> <?php
function sk_masonry_entry_footer() { genesis_post_info(); genesis_post_meta(); }