Home › Forums › General Issues › Parameters in url: array returns bool (false) › Reply To: Parameters in url: array returns bool (false)
Hi @michstar
I believe there’s something wrong with your filter_herenschoenen()
function. Could you please debug the $field
variable like the following?
var_dump($field);
Also, could you follow the example on that page like this instead:
<?php
function filter_herenschoenen() {
$field = get_field_object('field_583503060dc55', false, false);
$field['value'] = explode(',', $_GET['brand']);
?>
<div class="filter" data-filter="<?php echo 'brand'; ?>">
<?php create_field( $field ); ?>
</div>
<?php } ?>
Thanks 🙂
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.