Adding custom user options to wordpress - wordpress

I am trying to add a custom field to the wordpress user profile page. For instance if I wanted to add a field where the user could put in their Linkedin, or Twitter user name, then use that value whenever the user posts a comment, or if the user is an author, to add that value in their posts.
I have a forum (bbpress) integrated so I would also like to use this value to customize the users avatar in the forums.
I am looking at the way Wordpress uses Gravatar. I would like to do something similar. However, I'm not sure where to start. I've written a couple of shortcode plugins in the past, but nothing this complicated.
Anyone have any ideas on where I should begin on this?

look at this post and this

Related

Disable Yoast SEO on custom post type for specific user role

I've made a custom post type, where I want different users to only edit their posts. I've made some restrictions regarding their capabilities on the site and the posts - I don't want them to be able to edit anything other than a few textinputs and such.
For some reason I can't find a way to disable the Yoast SEO metabox on the posts - I've checked Yoast's own doc, but I haven't been able find anything regarding this besides using a plugin called User Role Editor, which doesn't work the way I need.
I've tried the snippet from this place, but it doesn't seem to work either.
TL;DR: Remove Yoast SEO on custom post type for a specific user.
You can use ADMIN MENU EDITOR PRO Plugin
With this plugin, you can choose every parts you want to display by user role in the admin.
This si the simple method.

How to use custom fields globally in Wordpress?

I'm trying to use the value of one custom field on multiple pages and posts. I'm a newbie to PHP and custom fields so what I'm trying to accomplish could possible be done using a different method.
I have a WPMU setup with all new sites created from a default blog that includes multiple custom post type templates. When users create a new site they are redirected to their site admin dashboard.
Here comes my challenge, I want users to be able to enter information into form fields contained in metabox(es) on their admin dashboard (not post editor) that will be used on the various custom post type templates. For example, a user will need to enter their company name, address, logo, etc.
Depending on the temple, the information entered into the form fields will be used on the frontend of the site. For example, the company logo will be display where the custom field or shortcode is placed on the post template.
I'm having issues using custom fields for this because each custom field is specific to each post. In addition, I'm having issues rendering a form on the admin dashboard for this.
I'm also thinking that custom fields may not be the best way to accomplish my objective because they are usually post specific. I'm really asking for a variable that will be used globally and is static unless the user updates the form.
I'd appreciate any assistance on this.
The options API is what you will need for this:
http://codex.wordpress.org/Options_API
There's also some plugins and frameworks you can use to help such as:
https://wordpress.org/plugins/options-framework/
https://wordpress.org/plugins/redux-framework/

Wordpress - How to create a fav posts feature

I want my users to be able to mark posts as favorite. I tried the wp-favorite-posts plugin, but it doesn't work. I mark posts as favorites and after refreshing the page it's all gone. Furthermore, if I put {{wp-favorite-posts}} to a page, it just shows the text.
So I want to create my own solution, but don't really know how. I have never edited the WP database, but I have plenty of PHP mySQL experience.
Can anyone please point me in the right direction ?
You can use post_meta. You can store the "favourite" aspect as a custom field attached to each post. You don't need to manually edit the database (i.e. via mySQL).
When you want to show the favourited posts, run a custom query that only shows posts with the specific custom field that you've specified.

Any Plugin or suggested Design for user to perform an Custom action on Wordpress content

I need to make a Wordpress website having lots of recipes.User will be allowed to read and click on "Cooked" button associated with that particular Article. I would like to store who all user have Cooked that recipe and show it when I am showing the Recipe.
Is there any plugin available which can store User Activities on content(like we have comments plugin) or else what should be the best way to do this?
Take a look at WP Favorite Posts plugin which allows visitors to add favorite posts.
and set the label as "Cooked" instead of "add to favorites" , this will be the easiest way to do it but if you are up for some custom coding then it's simply a matter of saving the recipe post id in the user meta using update_user_meta

wordpress user management, how to assign specific page to each user?

I want to create pages in WordPress, which should show to a specific user only not for specific role.
if a page is created for a specific user like "john". it should be viewed by only john, no other users could not see that page.
My Questions are:
How to create a page for a specific user? (from admin).
Note: while creating page we should assign that page to specific user like "john".
Is there any plugins for this?
Is there any way to do this.
-Srikanth.
I know that it is a bit late but still want to answer in case you need. Try to use http://wordpress.org/extend/plugins/user-specific-content/ plugin. You can customize your pages.
Just an idea:
Why not make a page template for that page? get current user id in the template then show the details depends on the user id? You can check is_user_logged_in() and pull all contents under the if statement and under the else statement you can redirect the user to the login page or just show the message to logged in.
Let me know if everything is clear. Thanks!
This can be done with ease using nav menu plugin and roles creator plugin.you can create roles with names of your clients and show menu items of user pages to specific roles/person

Resources