I m so sorr thy.. that’s right, I done a mistake in default number setting… Now that’s work !
That query is just a test on a custom toxonomy, but I ll made it only on a big cat.
This site is a bit complexe with almost 80 categories and 40 toxonomies more 30 customs fields… So query something is a bit hard for me 😀
Thanks a lot for your nice support !
Hello
This one is a 404 too
http://localhost/ajr2/cadeaux/cadeaux-anniversaire-femme/page/2/
It’s a custom taxonomy that I made in My function.php file
function cadeaux() {
register_taxonomy('cadeaux','post', [
'labels' => [
'name' => 'Cadeaux'
],
'show_in_rest' => true,
'hierarchical' => true,
'show_in_quick_edit' => true,
'show_admin_column' => true,
]);
}
add_action('init','cadeaux');
Do u need more informations ?
Hello do u need something more to answer this one ?
@John
I have another question. How to make to “checked” when I do a filter ?
Now When I filter my post checkbox are still “uncheck”.
Hope U will read this.
You are my heros !
Tahnks a lot 🙂
By the way a
var_dump($_GET['passion']);
Give me this
0 => string 'decoration' (length=10)
1 => string 'sport' (length=5)
Hope I will have some help cause I really need this form 🙂
Yes i have an error for all URL. Normaly error will apear only for URL without Amazon domain.
Ok so publish is ok but the condition doesn’t work…
If i put http://www.amazon.fr url => unpublish
If i put http://www.website.fr url => unpublish too
erreur ajax display
Normaly, this condition need to block other domain url.
Do you know why ?
By the way, log are empty.
Thanks for your reply.
I put this in my function.php but it doesn’t work
add_filter('acf/validate_value/key=field_5ab2ca68fcf2b', 'my_acf_validate_value', 10, 4);
function my_acf_validate_value( $valid, $value, $field, $input ){
echo "erreur";
if( !$valid ) {
return $valid;
}
$string = urldecode(get_field("url"));
$parse = parse_url($string);
echo $parse['host'];
if ($parse['host'] != "www.amazon.fr") {
$valid = 'Erreur';
}
return $valid;
}
Thanks for this !
I use that and problem is solved !
<?php
// vars
$place = get_field('lieu');
// check
if( $place && in_array('maintenon', $place) ): ?>
<span class="label label-primary labellieu">Château de Maintenon</span>
<?php elseif( $place && in_array('archives', $place) ):?>
<span class="label label label-warning labellieu">Archives départementales</span>
<?php elseif( $place && in_array('compa', $place) ):?>
<span class="label label label-danger labellieu">Le Compa</span>
<?php elseif( $place && in_array('classe', $place) ):?>
<span class="label label-success labellieu">Dans la classe</span>
<?php endif; ?>
“lieu” is checkbox.
I have the same problem to. Do you find any solution ?
Yes thoses fields are ACF select fields
Thanks for this help.
After lot of experimentation i found this
<?php echo get_field('petite_description_cat', 'category_' . $cat);?>
And it’s work. I don’t if this method is good but that’s work.
Please can you explain me more ?
I ever triyed to follow this tuts but it doesnt work or i dont understand all… By the way I m french :s
I just wanna display petite_description_cat on each category if petite_description_cat is here.
Any idea ?
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.