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
- Worthwhile to restrict direct access of theme files?
- Add custom classes to anchor in wp_nav_menu
- Upgrade from 5.0.4 to 5.1.1 causes $theme to be null
- How to alter the text of the post “Excerpt” box label in WordPress post editor?
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- How to Auto Approve Comments on a Specific Page?
- How to display admin bar when using WP_USE_THEMES = false?
- Responsive class to all the images in the content
- WordPress Errors in generated by theme check plugin [closed]
- WP Customize refresh problem
- My javascript jquery won’t work?
- approach to pass additional parameter in post URL
- WordPress wp-admin/network/plugin-install
- Replace function in a child theme
- Adding the_content() return warning count()
- How to enqueue a script which is type module without using script_loader_tag filter?
- How do I include a partial from a directory below a wordpress theme directory?
- Is it possible to have a Theme with built-in physical page files?
- header, stylesheet not being read
- first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]
- List categories of a post hierarchically?
- How to register dynamic settings in WordPress Customizer?
- How to add audio files to audio player in WordPress custom theme?
- Data Validation & Sanitization for Big HTML Blocks
- Using ‘get_template_directory_uri’ correctly
- Adding a space between next and previous post links
- Next post in category
- how to add radio field on user meta on function.php?
- Setting different CSS for all pages except home.php
- Adding copyright notice to page bottom in full site editing template