Use switch_to_blog( $new_blog_id )
, use get_post_meta($post_id, $key )
to get the value of the field, and run restore_current_blog()
when you are done.
You could use a site option (add_site_option($option, $value)
) and store the values you need in an array there in addition to the post meta field. This would save the rather expensive switch_to_blog()
calls.
Related Posts:
- Custom field when adding new site to multisite networked WordPress
- How to save values of a custom input field on the Network > Site Info screen
- ACF won’t load from a custom JSON location
- Get Data From wp_sitemeta for Multisite network
- Adding “meta” info to WP site PHP function?
- Where are custom field values stored in the database
- Using TinyMce with textareas in meta boxes on custom post types
- Having different sidebar content for MANY pages?
- How can I fetch CSS from JSON WP REST API response
- How to set a default meta value for custom field
- Create meta boxes that don’t show in custom fields
- How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?
- wp_editor in add_meta_boxes does not show gallery
- Calling Specific Pages with wp query Part II
- How do I assign this filter to a variable? (Appending php & markup to the_content)
- If value present, order posts by two consecutive custom fields
- Copying Custom Meta Values from existing post to a duplicate post
- Save page data to an xml file
- custom field to always to .get_the_title()?
- Displaying posts with only upcoming dates according their custom field date value
- How to filter a dd/mm/yyyy date from a custom field in a query
- List posts with common custom field value
- Create Posts using Import>RSS/WXR/XML and pass values to Custom Fields
- Importing users to Buddypress with custom fields
- How to save a ToggleControl value in a meta field?
- Is it bad to use a lot of Custom Meta Fields?
- How to get customfield value by woocommerce product ID
- How do I get the url slug inside the dashboard for a custom post type?
- How do I use Ajax to build a dropdown of custom fields based on a post selected in previous dropdown?
- Register rest field for specific user
- Audio player shortcode not showing up when using variable
- Save the_content into custom field
- Custom Fields – Taller editing area
- how to upload a image from frontend with wp_insert_post and also update_post_meta?
- Get updated meta value after post update or published (custom post type) using hook
- Custom dropdown field added to media gallery; how to get it to save properly?
- Insert a custom field into a shortcode and use it in post(s)
- Sort alphabetically by custom field
- Custom fields attached to a page template only show on edit screen when page is saved
- Populate Javascript code with value from WordPress Custom Field?
- Value from custom field is not being displayed?
- how to make nsfw post with thumbanil
- Specific coditional usage [closed]
- Can I access a post meta field before the loop?
- wrap text around custom fields array
- How to I make my post title link to a custom field
- Show image if author meta (profile fields) exists outside loop
- How can i retrive a text from a custom field
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- How can I check if a custom field was updated?
- Buik update custom field values from external API
- Get custom fields without _edit_last, _edit_lock, _wp_page_template and _visual-subtitle
- award points to a user each time they update their cpt post
- TinyMCE custom button retrieve value from custom field
- query_posts with meta_value
- Update post meta data (custom field) by post link
- Change a custom field value after X number of seconds
- Changing order in which custom fields appear in dashboard
- Let Users Filter Posts by Custom Fields
- Retrieving custom field value with get_post?
- Run Function if Order Meta Exists – WooCommerce
- Jquery on custom-field backend
- Custom Query: query by post custom meta data
- Using Custom Fields to Trigger Specific Actions on Saving a Post?
- How to use custom fields like Title to show value in content?
- Populate custom checkout fields with data from previous orders
- User query – getting values for custom meta keys/fields
- Expire Date Condition not Working ACF WordPress
- Making custom meta box required (with error message if not filled in) on Gutenberg
- Changing form action based on selected value
- trying to add extra field using hooks
- Can’t set custom meta fields for a post
- Hiding Dropdown Fields
- Custom fields with wordpress
- what would be a good example of a php dynamic code to display contents of textarea?
- How to add content with a filter when there’s no content in the editor
- Get file size from ACF repeater field
- Append custom field items to content from plugin
- Text in header as a page – hide from Web crawlers
- When post is updated, custom metadata in text area field is overwritten
- Set Value To Custom Field While Submit
- Custom Field: Display only if a specific key is selected outside the loop
- Show or hide lang=”ur” in main element
- How to use a custom field for search engine optimization
- Fetch data from a WP page with same name as current username
- Getting content from custom fields of different pages on a single page
- Custom Fields – How can I remove the publish option for certain users
- Can i categorise my meta box?
- How to overwrite a value for a custom field?
- WordPress archives by custom field and date
- When editing a post with a custom meta box the values aren’t displaying correctly
- Function to retrieve a picture if there is no picture is attached
- Show posts containing or not custom field
- How to get the value of particular get $meta value in wordpress
- custom field as a boolean with a checkbox?
- add_post_meta insert null value into Database
- Hiding custom fields when content is empty [closed]
- Website that sells statistics
- Extract array from custom field
- extra post fields for url + youtube video / implementation