Fetching posts that match a User Profile setting
Fetching posts that match a User Profile setting
Fetching posts that match a User Profile setting
This filter needs to return something. Try this function modify_contact_methods($profile_fields) { if(current_user_can(‘edit_users’)) { // Field addition and removal will be done here // Add new fields $profile_fields[‘company_name’] = ‘Company Name’; $profile_fields[‘company_id’] = ‘Company ID’; } return $profile_fields; } add_filter(‘user_contactmethods’, ‘modify_contact_methods’);
Your problem is totally related with pure PHP, not WordPress. You must understand that includes DO NOT break the variable scope. So, the $curauth is only life in author_list.php file and, more specifically, only life inside the foreach($author_ids as $author) loop of that file. In your page template you could use the_author_meta() to get the … Read more
By default wordpress gets a picture from gravatar based on the email associated with the profile. If you would like to be able to upload your own pictures through the administration you will need to use a plugin such as Easy Author Image or similar.
As mentioned by @PieterGoosen in the comments, all I had to do was shift my code to a custom author.php and the rest was solved.
As you are going to enter all data by yourself you can make use of Custom Post Types. Create 3 CPTs for each user type, Trustee, Alumni, Scholar. And with that create custom fields as per your need for each CPT. Once all data is in, then you need is to create Custom Page templates … Read more
anybody that looking for solution here is what i found that work for me. to get some data from any field in profile page you need to use this function: <?php get_the_author_meta( $field, $userID ); ?> then if you want to update some value in theme customizer you can use this function: set_theme_mod( ‘field name’, … Read more
Register author, facebook connect, publish posts from front end
allowing user to add content, photos without giving access
It should be stored in the wp_usermeta table under the entreprise and os user meta keys. You should consider using prefix on your custom meta keys, to avoid name collison. Example: kerzzy_entreprise kerzzy_os It should show up with: SELECT * FROM `wp_usermeta` WHERE `meta_key` = ‘entreprise’ in your MySQL administration tool, e.g. PHPMyAdmin. … and … Read more