{"id":12325,"date":"2011-02-26T16:53:55","date_gmt":"2011-02-26T16:53:55","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dirtysuds-category-thumbnail\/"},"modified":"2015-03-28T21:00:10","modified_gmt":"2015-03-28T21:00:10","slug":"dirtysuds-category-thumbnail","status":"publish","type":"plugin","link":"https:\/\/test.wordpress.org\/plugins\/dirtysuds-category-thumbnail\/","author":7648098,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.0","stable_tag":"1.5.0","tested":"4.2.39","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Category Thumbnail","header_author":"Pat Hawks","header_description":"","assets_banners_color":"","last_updated":"2015-03-28 21:00:10","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/pathawks\/Category-Thumbnail","header_plugin_uri":"https:\/\/github.com\/pathawks\/Category-Thumbnail","header_author_uri":"http:\/\/pathawks.com","rating":0,"author_block_rating":0,"active_installs":40,"downloads":10019,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","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":["1.00","1.01","1.02","1.03","1.4.0","1.5.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[133,163,86,166,129180],"plugin_category":[43,50],"plugin_contributors":[87131,78687],"plugin_business_model":[],"class_list":["post-12325","plugin","type-plugin","status-publish","hentry","plugin_tags-image","plugin_tags-images","plugin_tags-post","plugin_tags-posts","plugin_tags-wordpress","plugin_category-customization","plugin_category-media","plugin_contributors-caydenberg","plugin_contributors-pathawks","plugin_committers-pathawks"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dirtysuds-category-thumbnail.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>[catthumb id=\"CategoryID\" link=\"true\"] will find the most recent post in the specified Category with a featured image and return the thumbnail for that image. If <em>link=\"true\"<\/em> is specified, the image will link to the category specified.<\/p>\n\n<p>You can optionally search custom post types with the <code>post_type<\/code> attribute, and specify the thumbnail size with the <code>size<\/code> attribute. IE <code>[catthumb id=\"CategoryID\" link=\"true\" post_type=\"restaurants\" size=\"full\"]<\/code><\/p>\n\n<p>The plugin will only search <em>featured images<\/em>, not <em>attached images<\/em>. It will not look for images embedded in the post itself, or other attached images. If a category does not have any posts with featured images, this plugin will not return a thumbnail image, even if the category has posts with attached images.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>dirtysuds-category-thumbnail<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate <strong>DirtySuds - Category Thumbnail<\/strong> through the 'Plugins' menu in WordPress<\/li>\n<li>In the page editor, add the shortcode <code>[catthumb id=\"CategoryID\"]<\/code> where <em>CategoryID<\/em> is category id number. This <em>must be a number, not the category slug or name<\/em><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I use `catthumb` in a template?<\/dt>\n<dd><p>Of course! The syntax is very similar to the shortcode syntax. Just add the following line to your template.<\/p>\n\n<pre><code>&lt;?php dirtysuds_category_thumb(array('id'=&gt;'CategoryID')); ?&gt;\n<\/code><\/pre>\n\n<p>You just need to replace <em>CategoryID<\/em> with the id number of the category.<\/p><\/dd>\n<dt>I have an idea for a great way to improve this plugin<\/dt>\n<dd><p>Please open a pull request on <a href=\"https:\/\/github.com\/pathawks\/Category-Thumbnail\">Github<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5.0 20150328<\/h4>\n\n<ul>\n<li>Escape our queries<\/li>\n<\/ul>\n\n<h4>1.4.0 20150323<\/h4>\n\n<ul>\n<li>Allow custom image sizes<\/li>\n<li>Allow custom post types<\/li>\n<\/ul>\n\n<h4>1.03 20141011<\/h4>\n\n<ul>\n<li>Bugfix<\/li>\n<\/ul>\n\n<h4>1.02 20141011<\/h4>\n\n<ul>\n<li>Cleaned up code a bit<\/li>\n<li>Make use of transients<\/li>\n<\/ul>\n\n<h4>1.01.20121202<\/h4>\n\n<ul>\n<li>Cleaned up code a bit<\/li>\n<li>Now supports Jetpack Photon images<\/li>\n<\/ul>\n\n<h4>1.00.20110226<\/h4>\n\n<ul>\n<li>First version<\/li>\n<li>Works<\/li>\n<\/ul>","raw_excerpt":"Adds shortcode [catthumb] to embed a thumbnail image for a category.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12325"}],"author":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pathawks"}],"wp:attachment":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12325"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12325"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12325"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12325"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12325"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}