acf field repeater link don’t work

Question

I am trying to make an acf repeater field with the link field.
I don’t understand why I get an error message:
“Warning: ltrim() expects parameter 1 to be string, array given in”

Here is my code

    <?php if($assos):?>

    <?php foreach ($assos as $asso):
            
        $web = $asso ['title_fields_two'] ?>

        <span> 
            <a href="<?php echo esc_url($web);?>">
                <?php echo "$web";?>
            </a>
        </span>

    <?php endforeach; endif?>``

0
Thica 3 weeks 2023-01-09T10:46:49-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse