[plugin: profie-pic] Author page errors when authors have no posts
-
When I add a new user profile to profile-pic, I get an error when trying to display the author’s profile if they have not yet contributed any posts. The error reads:
<<Warning: Invalid argument supplied for foreach() in /…/…/public_html/wp-content/plugins/profile-pic/profile-pic.php on line 538>>
This is the code referred to:
foreach ($profiledata as $name => $data) {
$profile .= ‘<p><b>’. $name . ‘</b>: ‘ . $data . ‘</p>’;
}An example of a working author page can be viewed here:
https://awkwardpress.com/author/jeffrey/
A page that does not work properly can be seen here:
https://awkwardpress.com/author/segretto/
Please help!
- The topic ‘[plugin: profie-pic] Author page errors when authors have no posts’ is closed to new replies.