I have 2 “Flexible Content Field” areas. Lets say their name is “top” and “bottom”. Now I need to merge those. While their ids are different, their structures are totally same.
Meh..
Its working for normal fields but not flexible fields. I just need 1 example of “flexible field working with wpml” thats it. 1 little example
for example:
http://i.imgur.com/ReFwtI3.png is panel for http://base.theme.firmasite.com/
other example ss: http://i.imgur.com/pqa1TUg.png
So i cant predict which flexible content field’s layout is used in what order and how many. It can be text block, image, map etc.. postmeta names are like content_blocks_0_collection_type as my example in above so how can i make them translatable?
I should really send my theme to you for showing problem better tho. I am using flexible content field a bit different.
wpml see flexible field’s custom fields like these:
content_blocks_0_collection_type
content_blocks_0_contents_to_link
content_blocks_0_header
content_blocks_0_options
content_blocks_0_row_percentage
content_blocks_0_tab_location
content_blocks_0_tab_style
content_blocks_1_collection_type
content_blocks_1_gallery_images
content_blocks_1_header
content_blocks_1_row_percentage
content_blocks_1_tab_location
content_blocks_1_tab_style
content_blocks_1_text_block
content_blocks_2_add_marker
content_blocks_2_add_marker_0_header
content_blocks_2_add_marker_0_location_desciption
content_blocks_2_add_marker_0_location_map
content_blocks_2_gallery_images
content_blocks_2_header
content_blocks_2_row_percentage
content_blocks_2_text_block
whats solution here?
after_setup_theme cant get option values too..
I am using wp_head for now, but its not a good solution for every option.
Interesting section is, it works in my local test but it wont work in my server @ after_setup_theme. Maybe its problem with latest version of php? Using 5.4.19 on my server.
@mikerodriguez
Can you share your Icon Library field if possible?
If something strange happen, like this one, always check httpd errors first.
I got a similar problem in acf field creation area.
[error] [client 127.0.0.1] PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://local.dev/wp-admin/post.php?post=728&action=edit
Yep, error tells you what to do. Just increase max_input_vars value in your php.ini. I see my local installation dont even have this value but you can just add it to php.ini and restart server. It will work 🙂
Some discussion on this: http://stackoverflow.com/questions/10303714/php-max-input-vars
God.. these forum’s wysiwysg is buggy. When you you try to add link to a string, it closes window! I wrote a long descripton but its gone because of that -.-‘
Anyway..
It was for map markers. I want users add multi markers if they want. In future, i will try to support advanced additions like interactive map: http://leafletjs.com/examples/choropleth.html or vectors maybe: http://leafletjs.com/examples/quick-start.html Thats why i have to use flexible content for markers but it has to be 1 option for now.
I need a temporary solution, even a dirty one. I handled when option is changed with this:
(function($) {
$(document).on("change", "[data-field_name=collection_type]", function(){
$checked = $(this).find("input:checked");
console.log($checked.val());
});
})(jQuery);
I couldnt catch if data is already saved and window loaded. Any suggestion if possible?
I bought options & flexible this week and probably i will buy gallery and repeater soon but i would rather make this section with flexible field because i will probably add new layouts there in future. I was just asking if its possible to open directly single one
God.. i clicked solved accidently..
Well, I dont have repeater addon.
Well,
Is there any specific problem in there that you unset it? what was reason? can we safely remove that?
How did you put Flexible Content inside Flexible Content? I couldnt find it in panel.. am i missing something or did you put it with php rather then using panel?
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.