Getting a error: Array to string conversion
-
Hi, i’m getting an error when I test my page out with the plugin.
“Notice: Array to string conversion in..”
This is my code. I’m using a repeater field. $relatedLink is the acf that I’m using for the page link.
<?php if(have_rows('related_content')) : while(have_rows('related_content')) : the_row(); $relatedTitle = get_sub_field('related_title'); $relatedLink = get_sub_field('related_link'); ?> <a href="<?php echo $relatedLink; ?>" class="fs-leader-related__block">Image</a> <?php endwhile; endif; ?>
Thanks
- This topic was modified 7 years, 10 months ago by .
- This topic was modified 7 years, 10 months ago by .
- This topic was modified 7 years, 10 months ago by .
- This topic was modified 7 years, 10 months ago by .
- This topic was modified 7 years, 10 months ago by .
- This topic was modified 7 years, 10 months ago by .
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Getting a error: Array to string conversion’ is closed to new replies.