Support

Account

Forum Replies Created

  • Not dumb at all! Since it’s in the WP plugin repo you can grab it from WordPress Packagist here. Or drop this into your composer.json file:

    "wpackagist-plugin/advanced-custom-fields": "5.6.3"

  • Sorry for the double post but just confirmed that Relevanssi (non-premium) version also causes the issue. No idea how to troubleshoot from here.

  • Thank you Jari! Like a dolt I should have done the disable all plugins and then reenable until there may be a conflict. Oddly it appears to be Relevanssi Premium that’s causing the conflict. Have yet to test it but I think the non-premium version is fine. The network tab just seemed to have admin-ajax.php timing out when the calls were being made. When it comes to AJAX though (let alone what’s under the hood in WP admin) I’m over my head.

  • I know this is an old thread but I’ve run into this issue as well (at least with a post object field within a repeater) and I’m running the latest schtuff (ACF Pro 5.3.0, WP 4.3.1) as of this writing. Anyone have any luck? It’s happening with simple Page Link fields as well. Thanks in advance!

  • Having the same issue here as well. Doesn’t work for Page Link fields either. Always returns “No matches found”. Doesn’t appear to be any plugin conflicts either. I know this thread is a little old. Any luck anyone? Thanks in advance!

  • Perfect! It was the “abc{$d}efg” variable within a string syntax with the curly braces that I totally forgot about. Huge help. Thanks Elliot! U rule. This we know.

  • Sorry for the lack of detail Elliot and thanks for the reply. This isn’t an ACF issue. It’s more of a general PHP question and I was hoping to tap the ACF community. If that sort of a question doesn’t belong here let me know and I can post elsewhere. That being said…

    The code above works. I just know there’s a better way to do it and I couldn’t figure it out. The 3 sets of “column” field names (examples: cb_3_col_main_header, cb_3_col_1_link) are templated so to speak with the second number going from 1-3 within each column set. I should have done this in the first place but below I’ve simplified the code where you can see how the sub field names increment 1-3 within each <div> .columns set. Is there a way to do this with a loop, array(s) and a counter so the _1_, _2_, _3_ portions of the field names are all dynamic.

    Wow this feels like I’m not doing a good job of explaining. 😐 Hopefully the simplified code below is much easier in terms of demonstrating my question.

    <?php if(get_row_layout() == '3_column_layout'): ?>
    
    	<div class="row">
    		
    		<div class="small-12 large-4 columns">
    			<dl>
    				<dt><?php the_sub_field('cb_3_col_1_header'); ?></dt>
    				<dd><?php the_sub_field('cb_3_col_1_copy'); ?></dd>
    				<dd><?php the_sub_field('cb_3_col_1_link'); ?></dd>
    			</dl>
    		</div>
    
    		<div class="small-12 large-4 columns">
    			<dl>
    				<dt><?php the_sub_field('cb_3_col_2_header'); ?></dt>
    				<dd><?php the_sub_field('cb_3_col_2_copy'); ?></dd>
    				<dd><?php the_sub_field('cb_3_col_2_link'); ?></dd>
    			</dl>
    		</div>
    		
    		<div class="small-12 large-4 columns">
    			<dl>
    				<dt><?php the_sub_field('cb_3_col_3_header'); ?></dt>
    				<dd><?php the_sub_field('cb_3_col_3_copy'); ?></dd>
    				<dd><?php the_sub_field('cb_3_col_3_link'); ?></dd>
    			</dl>
    		</div>
    		
    	</div>
    
    <?php endif; ?>
Viewing 7 posts - 1 through 7 (of 7 total)