Remove fields from the user profile • WordPress Help

I do not know about you but I always have certain fields in the user profile page of WordPress, such as Yahoo AIM it's not that I'm not Well the service but I think it is something already outdated, and ultimately it is unnecessary noise in the profile of a user, who always has the doubt of whether it will work for something or not.

add_filter ( 'user_contactmethods' 'hide_profile_fields' 10 1 ) ; [19659014] function hide_profile_fields ( $ contactmethods ) {

unset ( $ contactmethods [19659004] [ 'aim' ] ) ;

unset ( $ contactmethods [ 'jabber' ] ]) ;

) unset ( $ contactmethods [ 'yim' ] ) ;

return $ contactmethods ;

}

In the previous example you remove all the messaging fields, in my case I have left Jabber / GTalk, you can adapt it to your liking.

HTML in the User Profile

By default, WordPress does not allow inserting HTML tags in the user profile to blog authors, so you can not have your template show a profile with links and other information of interest. If you want to use it, as we do in WordPress Help you must make a small modification in the theme.

That's right, the process is simple . Simply open the file ' functions.php ' (or create it if it does not exist) and add this code:

Translated WordPress Plugin – Profile Author • WordPress Help

Profile Author is a wonderful plugin, which in my opinion should include WordPress as part of the system. It offers not only a utility of load of images for the profile of blog authors in the administration panel but also comes with 4 template tags that you can include in your page of authors, even in the avatar of the comments. All configurable from a panel of options.

We have translated this plugin wonder, of which you can see an example in the page of the author of it .

How to change the WordPress password

Yesterday I was changing my password in a blog where I participate from time to time and realized that we have seen several times here like recovering passwords when you can not enter but we had not been able to explain how to change it in more "normal" situations and, by the way, the information was somewhat dispersed.

Change the password in phpMyAdmin (compilation of the methods described above)

Create a Blog Authors Page

There are blogs with several authors in which you can give a personal touch to the information of them. Almost all the templates have some information about the author in each entry, but not all of them offer you more information about the author, not even a link to their last published articles . And I think it gives the reader enough to know who is behind each blog.

 professional-blogger_id3720781_size480_2row.jpg

It is also possible that you have ever wondered that " what is the profile description field for? if it is not seen anywhere? ". Well, let's solve all these doubts and, maybe, some more.

The issue of the name of the author having a link to your entries we already saw it and now we will give it a superior approach, one more step in the personalization of this link. We will do it creating a page that shows the links to its articles, and also something more .

And it is that, like the fact of the blogs with several authors is a really matter recent many templates do not have a special page to that effect even though WordPress has the right functions to get it done to your needs.

Whether you're not lucky to have a template with author page as if you have it, I will explain the process to create / modify it and show relevant information. Let's see the process …

Step 1 – Complete the Profile information

If you have not yet completed your user profile information on the blog, it's time to do it. It is especially important that you complete the address of your personal page and the user's description since we will use this information for the authors page.

You can change this information in http: // tublog. com / wp-admin / profile.php . In the field of About the user we will go one step further and we will not limit ourselves to entering plain text but, using some HTML tags we will add links and some formatting to the text that describes you .

So, if in your profile you want to tell that you participate in a web you must enter this information with the tags that make the link to it active. Here is an example:

 about-de-wp.png

Step 2 – Create the authors page

If you have it you will find it in the folder of your template, it is called author.php . If you have not been so lucky, do not worry because it is very easy to create, we will use a page that is sure to come in your template.

The page in question is archives.php . The first thing to do is download it to your computer and rename it as author.php . Once this is done we will have to replace the information in the "loop" (part of the code that refers to the content shown), which will normally be something like that …

The above information will be accompanied by other codes, which are the ones that show the header ( header ), sidebar ( sidebar ) and footer ( footer ), do not remove these codes only what I indicate here. Well, we will be guided by the CODEX instructions to create a personalized page.

I propose to substitute the above for this …

You only have one left ]Save the file and upload it to the folder of your theme WordPress, as always in wp-content / themes / name_of_your_ template .

If you have not deleted or added more code than necessary you will get author pages like the ones you get by clicking on the names of the WordPress Help editors for example William or mine . [19659007] As you can see, offers the URL of the personal page and description introduced in our profile, as well as links to the last posts created .

¡Esta está! . And do not forget subscribe to our feed for do not miss any blog post .

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you: