@hube2 Thanks. I will give it a go
Hi, sorry no I didn’t. The project changed direction and no longer required it. However, if you come up with a solution I would like to know 🙂
Hi @elliot Any update on this. I would really like to switch to your method
@elliot Hi
If you like I will start an new thread, but I’m having the same issue but with saved published pages.
The data is saved and I can call it out on the front-end of the site without issue, but once saved in the admin area, it is not displayed there.
I have 5.4.6 running on the site.
Hi @jonathan,
I’m at a loss on how to combine it. I’ve been trying for hours. My example is here http://codepen.io/ashbryant/pen/kkLYZq any guidance you be most gratefully received 🙂
@markus yeah, I’ve been using it for a while. It good, but when you start having a lot of layouts in Flexi it does slow down a little. but as long as you plan for this it works well. I wanted to use @elliot’s version though as I think it will be better in the long run.
But as I say it works right now for me, and I will switch in the future.
@markus I’m not sure if this will help, but i’s what I’m using as an alternative right now.
https://codecanyon.net/item/advanced-custom-fields-component-field-addon/13770937
Hi All,
I had to abandon this due to deadlines on a project, but I really want it to work and I will be trying again on my next project. So I’m keen to see a fix too.
I raised a support ticket also for this issue ( for the plugin I have paid for ), only to be told look for a freelancer who can help.
Very helpful thanks guys.
Please, can anyone help with this? I really need to get this to work.
I just need a code example of a flexible field with a clone field that is a repeater field.
I’ve tried something like this but nothing works.
if ( have_rows('cloneField_flexibleContentField_cloneField_repeaterField') ){
echo '<h1>We have more rows!</h1>';
}
I can only seem to do a have_rows once. I know the data is there, I just need to be able to call it out.
Array ( [] => [layout_elements] => Array ( [0] => Array ( [acf_fc_layout] => layout_component_element_column [component_element_column] => Array ( [] => [element_column] => Array ( [0] => Array ( [column_content] => [column_width] => 12 [column] =>
test column 1
[column_start_with_drop_cap] => false [column_add_margin_to_the_top] => 0 [animate_elements] => [column_section_animation] => Array ( [0] => none ) [additional_element_options] => Array ( [0] => Array ( [element_id] => [element_visible_on] => ) ) ) [1] => Array ( [column_content] => [column_width] => 12 [column] =>
test column 2
[column_start_with_drop_cap] => false [column_add_margin_to_the_top] => 0 [animate_elements] => [column_section_animation] => Array ( [0] => none ) [additional_element_options] => Array ( [0] => Array ( [element_id] => [element_visible_on] => ) ) ) ) [full_screen_options] => [full_screen_option] => Array ( [0] => Array ( [component_option_full_screen_section] => off [component_option_section_background] => [component_option_section_text_colour] => ) ) ) [text] => some text ) ) [select_content_editor] => flexi [show_page_title] => true [display_background_image] => [background_colour] => #ffffff [background_image] => [image_repeat] => Array ( [repeat-y] => repeat-y ) [image_position] => Array ( [] => ) [position_top] => [position_left] => [image_size] => Array ( [auto] => auto ) [image_width] => [image_height] => [image_attachment] => Array ( [scroll] => scroll ) [custom_code] => Array ( [0] => Array ( [custom_code] => ) ) )
Is there a limit on the nesting of these cloned fields?
I’ve just checked, Sorry there is an English version ( but English is disabled on the site at the moment ) it has a data-key of field_554c7be3c5fb7, so that is the original.
I think I’m following you here, …
On the default lang ( German ) the tab I wish to target has
data-key="field_56c33dd8708f1"
on its link.
The wrapper of that tabs content has
class="acf-field acf-field-tab acf-field-56c33dd8708f1 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7"
On the other lang ( French ) the tab I wish to target has
data-key="field_56c32fba9c0a9"
on its link.
The wrapper of that tabs content has
class="acf-field acf-field-tab acf-field-56c32fba9c0a9 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7"
So I guess the answer is yes?
The tab wrapper has this …
<div class="acf-field acf-field-tab acf-field-56c33dd8708f1 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7" data-type="tab" data-key="field_56c33dd8708f1">
French
Array ( [ID] => 13509 [key] => field_56c32fba9c0a9 [label] => Layout Elements [name] => acf[field_56c32fba9c0a9] [prefix] => acf [type] => tab [value] => [menu_order] => 0 [instructions] => [required] => 0 [id] => acf-field_56c32fba9c0a9 [class] => [conditional_logic] => 0 [parent] => 13508 [wrapper] => Array ( [width] => [class] => field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 [id] => ) [_name] => [_input] => acf[field_56c32fba9c0a9] [_valid] => 1 [placement] => top [endpoint] => 0 )
German
Array ( [ID] => 13842 [key] => field_56c33dd8708f1 [label] => Layout Elements [name] => acf[field_56c33dd8708f1] [prefix] => acf [type] => tab [value] => [menu_order] => 0 [instructions] => [required] => 0 [id] => acf-field_56c33dd8708f1 [class] => [conditional_logic] => 0 [parent] => 13841 [wrapper] => Array ( [width] => [class] => field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 field_type-tab field_key-field_554c7be3c5fb7 [id] => ) [_name] => [_input] => acf[field_56c33dd8708f1] [_valid] => 1 [placement] => top [endpoint] => 0 )
I’m not sure myself about how WMPL does it, but I do know that it seems to be a field with a different key, In the main language it is data-key=”field_56c33dd8708f1″ then in another it changes to data-key=”field_56c32fba9c0a9″. This is why I thought a class option would be good as it would remain constant.
Yeah, that’s what I have been doing, but I have found that WPML changes those on the different languages, so other than the main language, that doesn’t work.
If I could set the class, it would remain constant across the languages (unless the user changes it). I’m sure there would be other use cases for it, but I just know that this would have helped me now 🙂
I agree, this is very important to a lot of people out there.
I would say that I wouldn’t think about building a WordPress site without ACF & Yoast SEO, I would think others will say the same?
@juliancoates34
Hi, I had looked time and time again at this, but I came up with a solution (with the help of others) here http://support.advancedcustomfields.com/forums/topic/yoast-seo-acf/
However, I’m sorry to say that it seems that Yoast has changed his method of doing things and it seems to be not working at the moment again 🙁
@hube2 Thanks once again for your help, but I have noticed another ‘bug’ the Wysiwyg Editor fields don’t seem to be displaying content with paragraph tags anymore either with the activation of the filter plugin.
I currently have the call looking like this …
the_field(‘column_1′, $term);
// $term = $taxonomy.’_’.$term_id to get the correct category content
I found this http://goo.gl/Y8Jw5E and tried reversing it like this …
the_field(‘column_1’, true, true, $term);
But that broke it 🙁
but I tried this and it worked …
$wysiwyg = get_field('column_1', $term);
echo apply_filters('the_content', $wysiwyg);
I hope this may help others in the future.
Would this work in reverse?
the_field(‘wysiwyg_field’, true, true);
Thanks! That has worked like a charm.
I’ve tried getting the plugin author to help, but he seems to take the position of the problem isn’t my code.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.