ACF relationship fields ‘The results could not be loaded’
I found the solution! Make sure you call wp_footer(); in this file: wp-content\themes\twentytwenty\footer.php
I found the solution! Make sure you call wp_footer(); in this file: wp-content\themes\twentytwenty\footer.php
Based on your pastebin array, this code below should loop through all your values in NJ, check if any of the values are empty, and if values have subfields or if value type is a post object. For example on NJ [welcome_bonus], is an array with sub fields. This code will loop through each subfield … Read more
Thats odd – it works ok here if I simulate this as a text field but other field types may cause a problem. Try replacing ‘the_field()’ with ‘get_field()’ in your code. If that doesn’t work – how is your field setup? Text, Number, Date etc…
You can use the explode() function to split a string into the array of values So you have a string of colors, separated with a comma, where the comma is a delimiter: $colors=”Fiery Red, Leafy Green, Sky Blue”; Now use the explode() function (here is a link to the documentation) to convert it to the … Read more
You need to use get_field() function instead. It will RETURN the value instead of printing. So, your code will be: soliloquy( get_field( ‘slider’ ) );
You’ll need to add the following in your form, php files and your JS. Pay close attention to the approach, because it won’t suit you. I am storing the file URL in the custom field. Possibly you prefer another way to store your file. First you need to add two HTML input fields. Add a … Read more
I changed code like this, and it works now. $_POST[‘acf’][‘species1’] to $_POST[‘acf’][‘field_xxxxxxxxxxxxx’] ‘field_xxxxxxxxxxxxx’ is name that is defined by ACF itself. My mistake was setting Custom key name instead of field name.
I’ve taken your code and refactored it. Your nested-for-loops arent the ideal way to go about this. Also, I’ve used your code and the meta key names exactly as you supplied them, so please double-check they’re correct. Some of them are prefixed with the_ and then sometimes not. It’s strange, but that’s what you supplied. … Read more
Shucks, no sooner than the second I desperately resort to asking here, I run into the answer. So for anyone else who just wants a straight answer and not some 45 minute video that never gets to the point… acf_register_block_type( array( ‘title’ => __( ‘Wrapper’, ‘client_textdomain’ ), ‘name’ => ‘wrapper’, ‘render_template’ => ‘partials/blocks/wrapper.php’, ‘mode’ => … Read more
Use https://www.phpmyadmin.net/ or https://www.adminer.org/ (available on many web hosts or install yourself) and use the overall search function to search for an instance of the string domain.com/domain.com so you can the find the exact problem string, and also find which tables the ACF data is stored in. The strings might be in wp_posts, or wp_postmeta … Read more