コード例 #1
0
    foreach ($myposts as $post) {
        setup_postdata($post);
        ?>

			<li class="home-ga-li">
				<h3 class="home-ga-title">
					<a class="home-ga-title" href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>
				</h3>
				<div id="home-ga-authors"><?php 
        echo apn_guest_authors_link();
        ?>
</div>
				<div id="home-ga-thumb">
					<?php 
        $coauthors = get_coauthors();
        ?>
					<?php 
        $the_avatar = get_avatar($coauthors[0]->user_email, '80');
        echo str_replace("class='avatar pull-left media-object", "class='avatar avatar-80 photo wp-post-image", $the_avatar);
        ?>
				</div>
				<a class="home-feature-excerpt" href="<?php 
        the_permalink();
        ?>
"><?php 
コード例 #2
0
ファイル: functions.php プロジェクト: hktang/apntwentyfifteen
/** gets co-authors link if co-aurhors plugin is installed. 
 *  otherwise, gets the link mannually. 
 *  
 *  
 */
function apn_guest_authors_meta()
{
    if (apn_guest_authors_link() != false) {
        $link = apn_guest_authors_link();
        $output = <<<EOD
\t\t<div class="row row-meta">
\t\t\t<div class="col-md-12">
\t\t\t{$link}
\t\t\t</div>
\t\t</div>
EOD;
        print $output;
    }
}