#WP Custom Fields Suite hyperlink error

1 messages · Page 1 of 1 (latest)

drowsy tendon
#

My php code is not working, what's my mistake?
Here's error:
<a href="<br /> <b>Warning</b>: Array to string conversion in <b>C:\xampp\htdocs\DCGroup\wp-content\themes\dc\templates\page-blog.php</b> on line <b>40</b><br />
Array">Узнайте наши преимущества:</a>

dusky wing
#

Array to string conversion - either $row["news_url"] or $row["news_description"] contains an array that you are trying to echo out.
You can print them using var_dump() to see which one it is, and what elements it contains

drowsy tendon
#

This is how I used it :
<a href="<?= var_dump($row['news_url']) ?>"><?= var_dump($row['news_description'])?></a>

#

@dusky wing