Advertisement
Guest User

Untitled

a guest
Oct 11th, 2021
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $id = get_main_site_id();
  2. switch_to_blog( $id );
  3.  
  4. $global_media_network = rwmb_meta( 'global_media_network', ['object_type' => 'network_setting'], 'map');
  5.  
  6. $global_media_network_group_images = $global_media_network['global_media_network_images_group']['global_media_network_group_images'];
  7. foreach ( $global_media_network_group_images as $image_id ) {
  8.     $image = get_post( $image_id );
  9.     echo '<img src="' . $image->guid . '">';
  10. }
  11.  
  12. // Display wording
  13. $global_media_network_cta_wording = $global_media_network['global_media_network_cta']['global_media_network_cta_wording'];
  14. echo $global_media_network_cta_wording;
  15.  
  16. restore_current_blog();
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement