Thanks Joshua for sharing that! Had a similar issue and was now able to fix it quickly…
Not realy an ACF question. Aber vielleicht:
$terms = array('1-herren');
$abfrage = array(
'post_type' => 'spieler',
'tax_query' => array(
array(
'taxonomy' => 'manschaft',
'field' => 'slug',
'terms' => $terms,
),
),
);
https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
Certainly possible. If you have a field within each layout for the anchor name and then just loop through the layouts twice. First for the anchor links, then for the blocks of text with those names.
I guess this works:
$num_cols = count( get_field('columns') );
Thank you @jhned for sharing your solution!
Ok found it… I was messing around with the query for categories (making it return my custom post type: course).
Had this in my functions:
function alter_category_query($query) {
if(is_category() && empty($query->query_vars['suppress_filters'])) {
$query->set('post_type', array('course'));
return $query;
}
}
add_filter('pre_get_posts', 'alter_category_query');
changed it to also include the acf-field post type:
$query->set('post_type', array('course', 'acf-field'));
BTW: WPML developers are notified so I hope it will be fixed soon.
https://wpml.org/forums/topic/404-since-last-update-on-admin-ajax-php/
I have the same problem, and not only for ACF admin functionality. So this is really a WPML issue. Setting the URL format to language parameter instead of directory resolves this.
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.