{"action":"created","issue":{"url":"https://api.github.com/repos/jgrossi/corcel/issues/216","repository_url":"https://api.github.com/repos/jgrossi/corcel","labels_url":"https://api.github.com/repos/jgrossi/corcel/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/jgrossi/corcel/issues/216/comments","events_url":"https://api.github.com/repos/jgrossi/corcel/issues/216/events","html_url":"https://github.com/jgrossi/corcel/issues/216","id":184618055,"number":216,"title":"Post format","user":{"login":"SimoneS93","id":6176258,"avatar_url":"https://avatars.githubusercontent.com/u/6176258?v=3","gravatar_id":"","url":"https://api.github.com/users/SimoneS93","html_url":"https://github.com/SimoneS93","followers_url":"https://api.github.com/users/SimoneS93/followers","following_url":"https://api.github.com/users/SimoneS93/following{/other_user}","gists_url":"https://api.github.com/users/SimoneS93/gists{/gist_id}","starred_url":"https://api.github.com/users/SimoneS93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimoneS93/subscriptions","organizations_url":"https://api.github.com/users/SimoneS93/orgs","repos_url":"https://api.github.com/users/SimoneS93/repos","events_url":"https://api.github.com/users/SimoneS93/events{/privacy}","received_events_url":"https://api.github.com/users/SimoneS93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-22T08:33:53Z","updated_at":"2016-10-22T08:48:17Z","closed_at":null,"body":"In the README you say:\r\n\r\n`$videos = Post::type('video')->status('publish')->get();`\r\n\r\nbut it can't be working, since `post_type` is different from `post_format`, that is what you're referring to.\r\nI'm working on this, but I'd like there's already a solution to this.\r\n\r\nFrom the Wordpress docs, it says that `post_type` can be one of:\r\n\r\n- post\r\n- page\r\n- attachment\r\n- revision\r\n- nav_menu_item"},"comment":{"url":"https://api.github.com/repos/jgrossi/corcel/issues/comments/255515808","html_url":"https://github.com/jgrossi/corcel/issues/216#issuecomment-255515808","issue_url":"https://api.github.com/repos/jgrossi/corcel/issues/216","id":255515808,"user":{"login":"jgrossi","id":1175275,"avatar_url":"https://avatars.githubusercontent.com/u/1175275?v=3","gravatar_id":"","url":"https://api.github.com/users/jgrossi","html_url":"https://github.com/jgrossi","followers_url":"https://api.github.com/users/jgrossi/followers","following_url":"https://api.github.com/users/jgrossi/following{/other_user}","gists_url":"https://api.github.com/users/jgrossi/gists{/gist_id}","starred_url":"https://api.github.com/users/jgrossi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgrossi/subscriptions","organizations_url":"https://api.github.com/users/jgrossi/orgs","repos_url":"https://api.github.com/users/jgrossi/repos","events_url":"https://api.github.com/users/jgrossi/events{/privacy}","received_events_url":"https://api.github.com/users/jgrossi/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T08:48:17Z","updated_at":"2016-10-22T08:48:17Z","body":"To search by `post_format` just use `where('post_format', 'foo')`. "}}
{"actor":{"display_login":"jgrossi"}}