The problem is that WP does not have a mechanism to do what is wanted. There might be a better approach, but I don’t really understand the purpose for the different types tags or how they are used to categorize posts.
That depends, why you you using a repeater? can you eliminate the use of the repeater?
There are ways to do this in code, but you are using elementor and you have to use things that work in both elementor and ACF. I actually surprised that you can use a repeater in elementor at all.
No, you cannot use breaks here. ACF uses the built in link editor, the same on that WP uses when you insert a link into content. The text you insert for the link title will be escaped when saving to the database and html tag characters converted to html entities. This escaping happens on saving the value and not when displaying the value.
first, where are these values saved, on the current post? options? something else?
second is the the actual text you are entering for the shortcode?
[acf field='="company"]
or was the extra ='
an error when you added it here?
this should be
[acf field="company"]
See my answer in your other topic
No, the forms on ACF do not have any mobile responsiveness. You would have to build custom CSS and override the CSS in ACF to do this. Adding custom CSS can be done the same way that adding custom JS is done. Beyond this I don’t know what would be involved in actually making it happen.
How you do this depends on how you are building. If you are building a theme yourself then you need to add a template for “taxonomy-{$taxonomy}.php”, see WP Template Hierarchy.
If you are using a page builder then you need to see the documentation for that page builder for building an archive template.
Preventing this would be complicated.
You would need to add custom javascript to ACF and use the ACF JS API select2_ajax_data filter and include the values selected in the other fields to the AJAX request and then use an acf/fields/taxonomy/query or acf/fields/taxonomy/wp_list_categories filter to alter the the terms that are returned by the AJAX request for each field.
The classic editor is still available in WP, the plugins that restore this are not adding it, they are simply disabling the new editor. The old editor is used the the “Classic Block“. This is a tinyMCE editor and this will likely never be completely removed from WP.
The only way to do that would be to have 3 different queries for posts based on the terms selected in each of the taxonomy fields.
When you create and image or gallery field you can select if they user can select from the entire media library or only images uploaded to the specific post.
Bidirectional fields don’t work on sub fields. To do this you would need to build a custom query for elementor to get the posts. And even here I don’t think you can make it work while using a sub field of a repeater.
No, there isn’t a way to use ACF fields for only specific fields.
How are you doing this transfer? Provide details.
If you are using the gutenberg editor then this is a know issue. Field groups will not automatically update based on taxonomy term selection and the post must be updated to trigger ACF to show the correct field group. The same is probably true when setting a default term for a post.
It really depends on how you are building the table, what you are using to do this and what type of fields you are trying to retrieve values for. Provide more information.
Use a bidirectional relationship on the post object field. Using a bidirectional relationship means the you would do the same thing for the mall post that you did for the shop post.
Add a field group to “attachment” using location rules.
You need to use an acf/load_field filter for the fields you want to change. In your filter you will check the current user role and set $field['add_term']
to true or false as needed.
I don’t have any code examples.
What you need to do is create an acf/save_post action. In this action you check the value of the true/false field. If it is true then you use wp_set_post_terms() to set the term.
You will also need to check to see if the value of the true/false field is false and if the term is set for the post (wp_get_post_terms()) and again use wp_set_post_terms() to remove it.
You cannot do this
$rows = get_field('criteria_details');
loop over this array and then attempt to use get_sub_field() on a nested repeater
if (have_foes('files', $row);
$row in the above case has no meaning to ACF.
You must either
1) Use a have_rows() loop for both the parent and child repeaters
2) Access the sub repeater in the original array $row['files']
;
ACF is not checking your templates for the use of specific functions for specific fields.
ACF is not checking to see if you’re using shortcodes for specific fields.
ACF has no idea if there is actually a problem or not.
ACF is simply looking at the content on a given page when you load the admin and comparing the content before and after applying wp_kses() to see if they are different.
Altering your code on the site will not change the fact that you have content in your database that will be altered by wp_kses().
The warning is so that you know there is a difference and do something to prevent the altering of your content by wp_kses() before they release the version that will actually alter that content so that you can prevent your site from breaking when that update is released.
I don’t see any reason why the code for your column content should not be working.
as in ‚d.'
I think you might want to contact support about this because it might be an error. If there is an '
in the formatting this might be changed to '
It it is a curly single quote that could also me altered to an html entity when escaped. This minor change could be triggering the warning.
I say this because there was another reported case where &
in the field content was triggering the warning.
A date field should not be causing an issue. What is the return format for the date field?
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.