Support

Account

Home Forums General Issues link array error

Unread

link array error

  • Hi,

    I want to create one of the links as an array but it doesn’t work. I looked at the documentation “link”. I think there is something I looped because I have this error “(!) WARNING: LTRIM () EXPECTS PARAMETER 1 TO BE STRING, ARRAY GIVEN IN”. what is the solution ?

    <div class="container-seho">
    	<?php $services_home = get_field('service_present');
    		if ($services_home):
    		$service_home_one = $services_home ['link_service_one'];
    		$service_home_two = $services_home ['link_service_two'];
    		$service_home_three = $services_home ['link_service_three'];
    	?>
    	<div class="service-txho"">
    	<h2><a>">
            <?php echo $services_home['title_service_one'];?></a></h2>
    	<h2><a>"><?php echo 
            $services_home['title_service_two'];?></a></h2>
    	<h2><a>">
            <?php echo $services_home['title_service_three'];?></a></h2>
    	<p><?php echo $services_home ['text_present_services'];?></p>
    </div>
    	<div class="service-imho">
    	<img />" alt="<?php echo $services_home ['image_service']['alt'];?>">
    	</div>
    <?php endif;?>
    </div>
Viewing 1 post (of 1 total)

The topic ‘link array error’ is closed to new replies.