Tag Info

New answers tagged

0

It's kind of a bit different, but since this thread appears first on Google, it might be usefull for someone else. To get the current logged-in user profile link, just use bp_loggedin_user_domain() Hope that helps.


0

1) You can create an account on AddThis. There's a Wordpress plugin for Addthis. 2) You can go to wordpress's plugins page and make a search for: "share", "social" or other words. There are plenty of plugins that you can use. Try for example this search. EDIT 3) You need to create custom fields. Search on wordpress.org/plugins for a module called ...


0

Based on @czerspalace 's tips, I seem to have created a working filter for this. I added the following function to the functions.php file in my twenty-twelve theme directory: function redirect_author_query_to_home( $query ){ if( is_author() ) { wp_redirect( home_url() ); exit; } } add_action( 'parse_query', ...


0

You can register a function in your functions.php like that: function get_user_role($id) { $user = new WP_User($id); return array_shift($user->roles); } Then in template file you call the function: <?php $aid = get_the_author_meta('ID'); echo get_user_role($aid); ?>



Top 50 recent answers are included