2012-11-08 3 views
0

게시자가 작성한 모든 게시물에 내 사이트의 저자가 얼마나 많은 게시물을 아래에 표시하고 싶은지 확인하십시오. 어떻게 내가 그걸 볼 수 있니? 내 저자 상자의 CSS 코드는 아래에 표시됩니다. my site.게시물 작성자 수 작성자 수를 표시 하시겠습니까?

/***** Author Box *****/ 
.post-gravatar { position: relative; width: 60px; height: 60px; margin: 0 10px 0 0; float: left; } 
.post-gravatar img { display: block; width: 50px; height: 50px; border: 1px solid #d9d9d9; background: #fcfcfc; padding: 4px; } 
#author-box, #archived-author-box { position: relative; width: 598px; margin: 0 15px 25px; background: #f1f1f1; border: 1px solid #d9d9d9; padding: 10px; } 
#author-box h3 { color: #222; font-size: 1.1em; margin: 0 0 10px; text-transform: uppercase; } 
#author-text, #archived-author-text { position: relative; width: 528px; float: right; } 
#author-text p { font-size: 1.2em; line-height: 1.6em; margin: 0 0 10px; } 
#archived-author-text p { font-size: 1.2em; line-height: 1.6em; } 
#author-text p a, #author-text p a:visited, 
#archived-author-text p a, #archived-author-text p a:visited { text-decoration: none; } 
#author-text p a:hover, #author-text p a:active, 
#archived-author-text p a:hover, #archived-author-text p a:active { text-decoration: underline; } 

답변

0

각 작성자가 작성한 게시물 수를 표시 하시겠습니까? 예를 들어 the_author_posts()(Codex)

라는 것을하는 기능이있다

, 루프 내부에서이 같이 사용할 수 있습니다

<p><?php the_author(); ?> has blogged <?php the_author_posts(); ?> posts.</p> 

를 내가 얻을

<p>Firstname Lastname has blogged 213 posts</p>" 
+0

뭔가를 번역 할 수있는 고리? 그리고 어디? – CoolBoy