Example #1
0
		<?php 
    the_post();
    ?>
	
		<h1 class="page-title author">
			<?php 
    printf(__('Author archives: %s %s', DPTPLNAME), get_the_author_meta('first_name', get_the_author_meta('ID')), get_the_author_meta('last_name', get_the_author_meta('ID')));
    ?>
		</h1>
	
		<?php 
    rewind_posts();
    ?>
	
		<?php 
    dp_author(true);
    ?>
	
	
		<?php 
    while (have_posts()) {
        the_post();
        ?>
			<?php 
        get_template_part('content', get_post_format());
        ?>
		<?php 
    }
    ?>
		
		<?php 
Example #2
0
// disable direct access to the file
defined('DYNAMO_WP') or die('Access denied');
global $dynamo_tpl;
?>

<?php 
do_action('dynamowp_after_post_content');
?>

<?php 
if (is_singular()) {
    ?>
	<?php 
    // variable for the social API HTML output
    $social_api_output = dp_social_api(get_the_title(), get_the_ID());
    ?>
		
	<?php 
    if ($social_api_output != '' || dp_author(false, true)) {
        ?>
	<footer>
		<?php 
        echo $social_api_output;
        ?>
		<?php 
        dp_author();
        ?>
	</footer>
	<?php 
    }
}
 * The template fragment to show post footer
 *
 **/
// disable direct access to the file
defined('DYNAMO_WP') or die('Access denied');
global $dynamo_tpl;
?>

<?php 
do_action('dynamowp_after_post_content');
?>

<?php 
if (is_singular()) {
    ?>
	<?php 
    // variable for the social API HTML output
    $social_api_output = dp_social_api(get_the_title(), get_the_ID());
    ?>
		
	<?php 
    if ($social_api_output != '' || dp_author(false, true)) {
        ?>
	<footer>
		<?php 
        echo $social_api_output;
        ?>
	</footer>
	<?php 
    }
}