{"id":17153,"date":"2012-02-29T11:36:17","date_gmt":"2012-02-29T11:36:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/img-custom-post-types\/"},"modified":"2014-02-14T11:53:31","modified_gmt":"2014-02-14T11:53:31","slug":"img-custom-post-types","status":"publish","type":"plugin","link":"https:\/\/fr.wordpress.org\/plugins\/img-custom-post-types\/","author":165559,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.96","stable_tag":"trunk","tested":"3.4.2","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"IMG Custom Post Types","header_author":"Phil Thompson","header_description":"","assets_banners_color":"","last_updated":"2014-02-14 11:53:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/imgiseverything.co.uk\/wordpress-plugins\/img-custom-post-types\/","header_author_uri":"http:\/\/imgiseverything.co.uk\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1714,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539318","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539318","resolution":"1","location":"plugin"}},"screenshots":{"1":"Add\/Edit screen of your custom post type","2":"View all listings for your custom post type"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[527,166],"plugin_category":[],"plugin_contributors":[91322],"plugin_business_model":[],"class_list":["post-17153","plugin","type-plugin","status-publish","hentry","plugin_tags-custom","plugin_tags-posts","plugin_contributors-imgiseverything","plugin_committers-imgiseverything"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/img-custom-post-types.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/img-custom-post-types\/trunk\/screenshot-1.png?rev=1539318","caption":"Add\/Edit screen of your custom post type"},{"src":"https:\/\/ps.w.org\/img-custom-post-types\/trunk\/screenshot-2.png?rev=1539318","caption":"View all listings for your custom post type"}],"raw_content":"<!--section=description-->\n<p>Custom Post Types, are by far and away one of the best additions to WordPress. However, they can be a bit cumbersome to set-up.<\/p>\n\n<p>With the IMG Custom Post Types plug-in creating basic custom post types is now easy.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>img-custom-post-types<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the IMG Custom Post Types plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Add new custom post types by editing your functions.php file using these examples<\/li>\n<\/ol>\n\n<ul>\n<li>Usage: -<\/li>\n<\/ul>\n\n<p>Simple example:\nhttps:\/\/gist.github.com\/1939891<\/p>\n\n<p>Example with custom meta fields:\nhttps:\/\/gist.github.com\/1939907<\/p>\n\n<p>Complex example:\nhttps:\/\/gist.github.com\/1939868<\/p>\n\n<p>Example with custom meta fields and data types:\nhttps:\/\/gist.github.com\/1939932<\/p>\n\n<p>Retrieving custom post type and Ordering by a date based custom field\nhttps:\/\/gist.github.com\/2157663<\/p>\n\n<!--section=changelog-->\n<h4>0.96<\/h4>\n\n<ul>\n<li>Take advantage of new type=\"date\" input attribute\/value on date fields. Removal of custom date picker where HTML5 is supported<\/li>\n<\/ul>\n\n<h4>0.951<\/h4>\n\n<ul>\n<li>Bug fixed where NULL\/unset foreign keys field shows the post title in table listings view<\/li>\n<\/ul>\n\n<h4>0.95<\/h4>\n\n<ul>\n<li>If thumbnails are supported then they are shown in the listings screen of the custom post type<\/li>\n<li>Instead of just one to one relationships between two custom post types you can now assign one to many relationships by naming a custom field say <code>example_taxonomy<\/code><\/li>\n<\/ul>\n\n<h4>0.941<\/h4>\n\n<ul>\n<li>Date picker CSS and JavaScript improved (a tiny tiny bit)<\/li>\n<\/ul>\n\n<h4>0.94<\/h4>\n\n<ul>\n<li>Bug fixed where custom taxonomies were added to posts as well as the new custom post type<\/li>\n<\/ul>\n\n<h4>0.93<\/h4>\n\n<ul>\n<li>Ability to use a datepicker to date fields in custom fields<\/li>\n<li>Date fields get timestamped too, so order by date in the get_posts() function with the meta_compare value should work<\/li>\n<li>Bug fixed where custom meta fields were not showing in View Posts listings view<\/li>\n<li>Longer copy custom fields (indicated by an _textarea naming convention) not show in View Posts listings view<\/li>\n<\/ul>\n\n<h4>0.92<\/h4>\n\n<ul>\n<li>Read me file improved. <\/li>\n<li>Screenshots added.<\/li>\n<\/ul>\n\n<h4>0.91<\/h4>\n\n<ul>\n<li>Tiny bug fixed with the naming of custom fields<\/li>\n<\/ul>","raw_excerpt":"Custom Post Types, are by far and away one of the best additions to WordPress. However, they can be a bit cumbersome to set-up.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/17153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=17153"}],"author":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/imgiseverything"}],"wp:attachment":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=17153"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=17153"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=17153"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=17153"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=17153"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=17153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}