{"id":5033,"date":"2016-01-24T16:56:42","date_gmt":"2016-01-24T14:56:42","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5033"},"modified":"2016-01-24T16:56:42","modified_gmt":"2016-01-24T14:56:42","slug":"only-shortcode-no-gallery-posts","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2016\/01\/24\/only-shortcode-no-gallery-posts\/","title":{"rendered":"Only shortcode, no gallery posts?"},"content":{"rendered":"<p>The description page clearly says the plugin features a &#8221;Gallery custom post type&#8221;, but for the life of me I cannot figure out how to publish or even preview those posts. I can add galleries and use the short link on other post types, but the editor for galleries has no &#8221;preview&#8221; functionality and there&#8217;s no way to view gallery posts on the front end on their own. I&#8217;d expect to be able to view the galleries at \/(gallery_post_type_slug)\/(gallery_post_slug).<\/p>\n<p>Looking at the custom post type code (includes\/class-posttypes.php), the &#8217;public&#8217; and &#8217;rewrite&#8217; args to register_post_type() have been set to false, which according to Codex documentation causes what I&#8217;m seeing. The args variable has a filter so I could override it; does this imply that I&#8217;m intended to add a filter to have the galleries work as a viewable post type and not just something used behind the scenes by the plugin?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The description page says the plugin features a custom post type, but I cannot figure out how to publish or even preview those posts.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1097],"tags":[2965],"class_list":["post-5033","post","type-post","status-publish","format-standard","hentry","category-keskustelupalstat","tag-wordpress","sijainti-wordpress-codex"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5033"}],"version-history":[{"count":7,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5033\/revisions"}],"predecessor-version":[{"id":5040,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5033\/revisions\/5040"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}