1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/kannafay-iFalse

Клонировать/Скачать
sidebar-article.php 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
神秘布偶猫 Отправлено 30.01.2023 17:55 1cf6e92
<div class="sidebar">
<div class="author-info-box">
<div class="author-info">
<div class="post-author-logo">
<a href="<?php the_post();home_url();echo '/author/';echo get_the_author_meta('user_login');rewind_posts(); ?>"><?php the_post();echo get_avatar(get_the_author_ID());rewind_posts(); ?></a>
</div>
<div class="post-author-name"><?php the_author_posts_link(); ?></div>
<div class="post-author-description">
<?php
if(get_the_author_meta('description',$post->post_author)) {
echo get_the_author_meta('description',$post->post_author);
} else {
echo '这家伙很懒,什么都没写';
}
?>
</div>
<div class="post-author-new">
<?php query_posts('showposts=6&author='.$post->post_author);
while (have_posts()) : the_post();?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</div>
</div>
</div>
<!-- sidebar -->
<ul id="primary-sidebar">
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<?php dynamic_sidebar( 'sidebar-2' ); ?>
<?php else: ?>
<?php endif; ?>
</ul>
</div>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/kannafay-iFalse.git
git@api.gitlife.ru:oschina-mirror/kannafay-iFalse.git
oschina-mirror
kannafay-iFalse
kannafay-iFalse
master