We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get the above error when i try to get featured image of a post with bad featured image.
Install FakerPress (to generate random posts with featured images)
from laravel make a request to fetch all posts and display feature images
I used this method in my model to retrieve thumbnails
public function getPostThumbnail() { try{ if ( !is_null($this->meta->_thumbnail_id) ) { return $this->thumbnail; } return asset('images/blog/1.jpg'); }catch(\Exception $ex) { return asset('images/blog/1.jpg'); } }
so i can call it like so $post->getPostThumbnail().
$post->getPostThumbnail()
I got the error as shown in the screenshot below
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description:
I get the above error when i try to get featured image of a post with bad featured image.
Steps To Reproduce:
Install FakerPress (to generate random posts with featured images)
from laravel make a request to fetch all posts and display feature images
I used this method in my model to retrieve thumbnails
so i can call it like so
$post->getPostThumbnail()
.I got the error as shown in the screenshot below
The text was updated successfully, but these errors were encountered: