Support

Account

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 🙂