Ok I figured a way to do it. If anyone else is interested, here’s the code. It first gets the user id of the admin of the blog, and then it uses the id to pull the meta from the profile fields.
For one field —
<?php
$thisblog = $current_blog->blog_id;
$user_id_from_email = get_user_id_from_string( get_blog_option($thisblog, 'admin_email'));
$twitt = (get_user_meta($user_id_from_email, 'twitter', true)); ?>
<?php echo $twitt; ?>
And to display multiple fields —
<?php
$thisblog = $current_blog->blog_id;
$user_id_from_email = get_user_id_from_string( get_blog_option($thisblog, 'admin_email'));
$twitt = (get_user_meta($user_id_from_email, 'twitter', true));
$fb = (get_user_meta($user_id_from_email, 'facebook', true)); ?>
<?php echo $fb; ?>
<?php echo $twitt; ?>
Related Posts:
- How to set permalink structure via functions.php
- Change admin bar to default:off
- How to hide admin account in BuddyPress? (for security reasons)
- How to change admin bar color scheme in MP6 / WP 3.8 front end?
- How to make a theme with more than one CSS file?
- Including CSS and JS on Admin Screen of Custom Theme Options
- How to customize wordpress login/register pages?
- date_i18n() issue
- Add social icons in a theme through custom admin menu
- Different Admin Theme – Based on Role?
- WordPress Multisite: Have the same header and footer of main-blog on all sub-blogs
- How to test for MU via functions.php?
- Same footer on all multisites blogs
- Excluding a page with a certain name from wp_page_menu
- user-new.php less detailed after WP3.1; how to revert?
- How can I disable/hide certain themes in multisite?
- Administration Pages Styling
- How to make content editable from admin page?
- Change the template of multiple multisite pages at the same time
- Is it a bad practice to use switch_to_blog in the frontend?
- How can I display/hide certain content based on a Theme Option field?
- Is it possible to edit the styling of the admin panel from within a custom theme?
- Theme Development for WordPress Multisite Installation
- WordPress empty Nav Menu error
- Where can i design and modify a new mail template for sending emails to users when commenting?
- multisite: global menu containing network site links?
- Can’t work out why widget contents disappear from admin
- Adding custom class to get_avatar() image doesn&https://wordpress.stackexchange.com/https://wordpress.stackexchange.com/#39;t work
- Permanently activate WordPress theme
- Acivate all themes multisite wide automatically
- Question regarding WP multisite feature
- Add attachment for all images in post
- How can I make the user names of commentors clickable links to the user’s profile from the admin comment screen?
- How to remove text “Log In” from login page
- Featured Image meta box not showing up
- Where do files uploaded via Media Manager get stored in MU?
- Can’t use admin_enqueue_scripts or wp_enqueue_script
- How to include a file only on dashboard widgets page?
- Solving a get_user_meta() problem in Multisite
- Thesis -style Navigation
- How to allow users to create their own website within my domain? [closed]
- Add user meta after a user has registered and logged In [closed]
- Different text on different sites in a multisite setup
- Show global Message in User Profiles with admin only Input field in WordPress Backend
- How to make a theme unable to be used on a multisite network?
- Sample Theme Options page for Multisite – what to consider
- Get themes’s images path in WordPress Multisite
- How to remove permalinks links presents in each page of my site?
- Multi Site Setup, Child Themes, Getting Style Sheet Directory
- Converting a theme to a child theme in a network
- HTTP Error when uploading images over specific dimensions
- Filter to remove the default password on “Your Profile” page
- show_option_none not working in meta box
- How to get blog-id of an MU site from functions.php
- theme directory fallback image outputs url and not the image
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- How to get full native language instead of iso?
- How to make menus, footer, sidebars multi language
- Why does the theme of secondary site load the primary one in WordPress Multisite? [closed]
- Let user publish posts on community page
- How to hide blog by id wordpress multisite listing
- Can I use WP Multi-site on a sub-domain with a different theme but use all the original site’s posts/pages?
- Mutlisite in wordpress is not working
- background_image support multiple image size?
- How can I demonstrate themes well?
- Multisite – Echo admins profile meta
- How to remove menu from WP-Admin menu
- Theme Options Doesn’t Work On WP Multisite
- Subsite theme mystery man replacement with Buddypress on main site [closed]
- Custom link color or stylesheets
- Menu items description? Custom Walker for wp_nav_menu()
- How to define and link full path to css located at a random folder on header.php
- Sizing screenshot.png without losing aspect ratio
- Software for WordPress Theme and Plugin Development? [closed]
- When to use is_home() vs is_front_page()?
- What is the preferred way to add custom javascript files to the site?
- Get the blog page URL set in Options
- How to create .pot files with POedit?
- How do I get the theme URL in PHP?
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- What is the constant WP_USE_THEMES for?
- Worthwhile to restrict direct access of theme files?
- How Do I Protect My Premium WordPress App Theme from Copying?
- How to detect mobile devices and present them a specific theme?
- Using wp_add_inline_style without a stylesheet
- How to add posts to custom menus?
- WordPress Theme Preview Image
- How To extend WP_Customize_Control
- What is the difference between front-page.php and home.php? [duplicate]
- How can I get page slug
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- How to create a front end user profile with a friendly permalink
- When to use _e and __ for the translation?
- What is a Theme textdomain?
- How to show a custom meta box on the “Quick Edit” screen?
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- How important is it to enqueue a theme’s stylesheet?
- CSS not updating in browser when I change it
- Display Search Result Count