Page 52 of 52
You’ve heard about localization (internationalization) WordPress plugins, which automatically translate plugin text into your blog language without changing any codes. But what about localization themes? How can we make a theme multilingual? It is as easy as working with plugins as you’ll see in this post.
Showing avatars of post author is a very common and popular task. In WordPress, to retrieve avatar for post author, just easily use this code within Loop:
<?php echo get_avatar(get_the_author_meta('user_email'), 64); ?>
Change 64 to another size if you want. The function get_avatar has 4 parameters:
The auto readmore script is first created by AnhVo at vietwebguide.com (the website is not available now). Based on this idea, I create a new auto readmore script with more options:
- Add default thumbnail image when posts don’t have any images.
- Option to turn off auto readmore for some first posts.
- Option to turn on/off auto readmore for homepage and label page.