Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the image #60

Closed
iteearmah opened this issue Dec 27, 2017 · 2 comments
Closed

How to use the image #60

iteearmah opened this issue Dec 27, 2017 · 2 comments

Comments

@iteearmah
Copy link

Method Corcel\Acf\Field\Image::__toString() must return a string value (View:

@jgrossi
Copy link
Member

jgrossi commented Jan 19, 2018

@iteearmah Hi, first sorry about the late answer. These last weeks were busy.

Can you provide more information about this error? When does it happen?

@maxkopych
Copy link

I had the same problem. To fix it you need to check if field exist

if($tool->acf->tool_icon){
	echo $tool->acf->tool_icon->url;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants