Support

Account

Forum Replies Created

  • Thanks @Dalton! I think I may have found something else that will help. When logged in to the back end of your WP Engine website, hover over the left-hand menu item and click on WP Engine. Your General Settings window should pop up. Make sure your “Object/Transient Cache” item is set to Disabled.

    This fixes the problems I am having while editing my themes.

  • I’m experiencing the same issues at you, @Dalton. I’d like to place a ticket with WP Engine as well, do you mind if I can have your ticket number for this issue so I can reference it?

  • Hey Elliot! I spent this morning really trying to hone in on what the issue was, and I realize it was a very simple thing I didn’t think to mention.

    I had exported the ACF field groups I created to hardcode them inside my theme’s function file, including the option page’s field groups. It seems like using multisite and any custom field that is generated inside the functions.php file will not pull information correctly.

    I simply reactivated and recreated my field groups inside the plugin interface on my website and everything works perfectly now. All fields and all options.

    I hope this can help anyone else experiencing issues with ACF and multisite.

    Thank you again Elliot for an amazing plugin and all your hard work!

  • Hello again!

    I am actually pulling that entire chunk of code from my main site. The restore_current_blog function is at the very bottom of the full piece of code.

    I’m essentially creating a global header across my multisite network from the main site.

  • Thank you for the quick response! Sure thing. The full piece of code I’m using is to pull the header from my main site to my sub-sites. The particular bit in question is this piece:

           <?php switch_to_blog(1); ?>
    	<?php if (get_field('activate_alert', 'option')) { ?>
    		<div id="globalAlert">
    			<div class="content"><?php the_field('manage_alert', 'option'); ?></div>
    		</div>
    	<?php } ?>

    The field activate_alert is a true/false field. So when the user checks it off as true, I want to display the manage_alert field, which is a basic wysiwyg field.

    The entire portion of code is as follows (so you can see where I’m placing the alert field in relation to the entire header):

    <body <?php body_class(); ?>>
    
    <?php switch_to_blog(1); ?>
    	<?php if (get_field('activate_alert', 'option')) { ?>
    		<div id="globalAlert">
    			<div class="content"><?php the_field('manage_alert', 'option'); ?></div>
    		</div>
    	<?php } ?>
    
    <div id="page" class="hfeed site">
    	<?php do_action( 'before' ); ?>
    	<div id="headerWrap">
    		<header id="masthead" class="site-header" role="banner">
    			<div id="imagebanner"></div>
    			<div class="site-branding">
    				<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    				<?php $text=get_bloginfo('name'); $text=explode(' ',$text); $text[0]='<span>'.$text[0].'</span>'; $text=implode(' ',$text); echo $text; ?>
    				</a></h1>
    			</div>
    			
    			<div id="searchform"><?php global $global_site_search; echo $global_site_search->global_site_search_search_form_output('',''); ?></div>
    	
    			<nav id="site-navigation" class="navigation-main" role="navigation">
    				<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    			</nav><!-- #site-navigation -->
    
    			<nav id="secondary-navigation" class="navigation-secondary" role="navigation">
    				<?php wp_nav_menu( array( 'theme_location' => 'quicklinks', 'menu_class' => 'quicklinks', 'items_wrap' => '<ul id="%1$s" class="%2$s"><li><a href="#">Quick Links</a><ul>%3$s</ul></li></ul>' ) ); ?>
    				<?php wp_nav_menu( array( 'theme_location' => 'webconnect', 'menu_class' => 'webconnect', 'items_wrap' => '<ul id="%1$s" class="%2$s"><li><a href="#">Web Connect</a><ul>%3$s</ul></li></ul>' ) ); ?>
    			</nav><!-- #site-navigation -->
    
    		</header><!-- #masthead -->
    	</div>
    	<?php restore_current_blog(); ?>
    
Viewing 5 posts - 1 through 5 (of 5 total)