The wordpress is very excellent CMS for end user as well as development end. The wordpress has very rich set of function to get your aim,Ex. we want to display the currently logged in users avatar. In wordpress we can do very easily, with help of below code we can display the currently logged in users avatar in our theme.
1 2 3 4 5
<?php global $current_user; get_currentuserinfo(); echo get_avatar( $current_user->ID, 64 ); ?>
We can modify the width of Avatar image.The second argument of get_avatar() function is the size parameters of avatar.The default is 96px and max is 512px.
Latest posts by Parvez (see all)
- Midnight.js – jQuery Plugin to Switch Fixed Headers - September 29, 2014
- Facebook : New Graph API v2.1 and updated iOS and Android SDKs - September 24, 2014
- How To Add RowId and RowClass on Datatable - September 22, 2014