wordpress snippets last updated   : April 14, 2014
we now have 630 snippets
category profile

Display avatar for currently logged in user with get_avatar

wordpress snippet

Adding this snippet to your wordpress template will display the currently logged in users avatar in your theme. To adjust the side of the avatar change the number 64 within the get_avatar function default is 96 and max size is 512.

read more

Display list of authors in a dropdown menu using wp_dropdown_users

wordpress snippet

Adding this snippet to your wordpress template will display a list of authors within a dropdown menu linking to their author profiles. I also excluded the default user ’1′ as the administrators would also be display. This is a comma separated list so you can remove any users that you don’t wish to display.

read more

Remove personal options from user profiles

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove the personal options from users profiles.

read more

Add contact methods to profile, Twitter, Facebook, Flickr

wordpress snippet

Adding this to the functions.php of your wordpress theme will add Twitter, Facebook, Linkedin and Flickr contact info fields to users profiles. This will also remove aim, yim and jabber fields from user profile pages.

read more

Remove default profile fields

wordpress snippet

Add this to the functions.php of your wordpress theme to remove the default profile fields.

read more

Add & display custom profile info

wordpress snippet

Adding the first block of code to the functions.php of your wordpress theme will add a new field “address” to the user profile. You can get and display this field using get_the_author_meta() and would display it within the page like so echo $auth->address. You can create new fields by duplicating the code in the example.

read more
jqsnipp.com | we just launched jquery snippets website