{"action":"created","issue":{"url":"https://api.github.com/repos/jgrossi/corcel/issues/184","repository_url":"https://api.github.com/repos/jgrossi/corcel","labels_url":"https://api.github.com/repos/jgrossi/corcel/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/jgrossi/corcel/issues/184/comments","events_url":"https://api.github.com/repos/jgrossi/corcel/issues/184/events","html_url":"https://github.com/jgrossi/corcel/issues/184","id":167138506,"number":184,"title":"Get different featured image sizes","user":{"login":"jgbneatdesign","id":8051752,"avatar_url":"https://avatars.githubusercontent.com/u/8051752?v=3","gravatar_id":"","url":"https://api.github.com/users/jgbneatdesign","html_url":"https://github.com/jgbneatdesign","followers_url":"https://api.github.com/users/jgbneatdesign/followers","following_url":"https://api.github.com/users/jgbneatdesign/following{/other_user}","gists_url":"https://api.github.com/users/jgbneatdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/jgbneatdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgbneatdesign/subscriptions","organizations_url":"https://api.github.com/users/jgbneatdesign/orgs","repos_url":"https://api.github.com/users/jgbneatdesign/repos","events_url":"https://api.github.com/users/jgbneatdesign/events{/privacy}","received_events_url":"https://api.github.com/users/jgbneatdesign/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-22T21:43:55Z","updated_at":"2016-07-23T00:46:56Z","closed_at":null,"body":"Hello there! How could I get the different featured image sizes set in the WordPress backend or the functions.php file with the add_image_size function?\r\n\r\n- Regards"},"comment":{"url":"https://api.github.com/repos/jgrossi/corcel/issues/comments/234688578","html_url":"https://github.com/jgrossi/corcel/issues/184#issuecomment-234688578","issue_url":"https://api.github.com/repos/jgrossi/corcel/issues/184","id":234688578,"user":{"login":"jgbneatdesign","id":8051752,"avatar_url":"https://avatars.githubusercontent.com/u/8051752?v=3","gravatar_id":"","url":"https://api.github.com/users/jgbneatdesign","html_url":"https://github.com/jgbneatdesign","followers_url":"https://api.github.com/users/jgbneatdesign/followers","following_url":"https://api.github.com/users/jgbneatdesign/following{/other_user}","gists_url":"https://api.github.com/users/jgbneatdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/jgbneatdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgbneatdesign/subscriptions","organizations_url":"https://api.github.com/users/jgbneatdesign/orgs","repos_url":"https://api.github.com/users/jgbneatdesign/repos","events_url":"https://api.github.com/users/jgbneatdesign/events{/privacy}","received_events_url":"https://api.github.com/users/jgbneatdesign/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T00:46:56Z","updated_at":"2016-07-23T00:46:56Z","body":"I tried using an accessor  on the model like:\r\n\r\ngetImagesAttribute = return $this->attachment[0]->meta[1]-value;\r\n\r\nAnd adding it to the appends array like this\r\nprotected $appends = ['images'].\r\n\r\nIt doesn't appear on the returned post object, unless I called it on the $post object like this: $post->images. \r\n\r\nI manage to get exactly what I want through manipulating the object $post in the controller\r\n$post->images = $post->attachment[0]->meta[1]-value;\r\n\r\nBut still I got some issues with the different image sizes returned because I only see their name. Which I think I could manage to sort out by preventing WordPress from arranging the unloaded images by yeah/month. \r\n\r\nI don't know what you think. If there's something I'm doing wrong please let me know. \r\n"}}
{"actor":{"display_login":"jgbneatdesign"}}