turkishjapan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: Yoast Breadcrumbs] UTF8 for “home”I need it. How can use UTF8?
Forum: Fixing WordPress
In reply to: Custom Fields QUESTION!! PLEASE READ!!If you use same custom fields for every post edit your theme and write.
Forum: Fixing WordPress
In reply to: How to show top authors with avatar and count@t31os_ Thank you but this is without avatars.
—
<?php //sort users descending by number of posts, display username and avatar $uc=array(); $blogusers = get_users_of_blog(); if ($blogusers) { foreach ($blogusers as $bloguser) { $post_count = get_usernumposts($bloguser->user_id); $uc[$bloguser->user_id]=$post_count; } arsort($uc); foreach ($uc as $key => $value) { $user = get_userdata($key); $author_posts_url = get_author_posts_url($key); $post_count = $value; echo '<li>'; echo '<a href="' . $author_posts_url .'">' . $user->user_nicename . '</a> (' . $post_count . ')'; echo get_avatar( $user->ID, 4 ); echo '</li>'; } } ?>
This is nice code but i need to only 10 authors. this is unlimited. thanks all.
Forum: Fixing WordPress
In reply to: How to show top authors with avatar and count<?php //sort users descending by number of posts, display username and avatar $uc=array(); $blogusers = get_users_of_blog(); if ($blogusers) { foreach ($blogusers as $bloguser) { $post_count = get_usernumposts($bloguser->user_id); $uc[$bloguser->user_id]=$post_count; } arsort($uc); foreach ($uc as $key => $value) { $user = get_userdata($key); $author_posts_url = get_author_posts_url($key); $post_count = $value; echo '<li>'; echo '<a href="' . $author_posts_url .'">' . $user->user_nicename . '</a> (' . $post_count . ')'; echo get_avatar( $user->ID, 4 ); echo '</li>'; } } ?>
thats working.
finally i need to show 5 or 10. thats coming too much almost all of members.
Forum: Plugins
In reply to: [Plugin: TDO Mini Forms] Can’t save hacked formi have got same problem ??
Forum: Plugins
In reply to: Is This a Plugin?Thanks for helping. I asked i hope the answer will come soon.
Forum: Plugins
In reply to: Is This a Plugin?Thanks but I guess not same plugin. is it?
Forum: Fixing WordPress
In reply to: How to show top authors with avatar and countThanks a lot but it has error.
Notice: Undefined property: stdClass::$user_firstname in C:\xampplite\htdocs\wp\wp-content\themes\xxxxxxx\sidebar.php on line 31
the line is:
echo '<p>User ID ' . $user->ID . ' ' . $user->user_firstname . ' ' . $user->user_lastname . ' number of posts:' . $post_count . ' author posts url:' . $author_posts_url .'<p>';
Edit: i found the problem. from user_firstname and user_lastname doesn’t working. when i deleted it’s working but without names not ok.
Forum: Fixing WordPress
In reply to: How i get only 3 tags or like that?Hey MichaelH!
You are amazing! Thanks a lot.