{"id":29087,"date":"2014-04-25T08:15:06","date_gmt":"2014-04-25T08:15:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/category-featured-images\/"},"modified":"2015-01-29T14:50:13","modified_gmt":"2015-01-29T14:50:13","slug":"category-featured-images","status":"publish","type":"plugin","link":"https:\/\/mya.wordpress.org\/plugins\/category-featured-images\/","author":13662676,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.8","stable_tag":"trunk","tested":"4.1.42","requires":"3.5.0","requires_php":"","requires_plugins":"","header_name":"Category Featured Images","header_author":"Mattia Roccoberton","header_description":"","assets_banners_color":"e6e6e6","last_updated":"2015-01-29 14:50:13","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.blocknot.es\/home\/me\/","header_plugin_uri":"https:\/\/github.com\/blocknotes\/wordpress_category_featured_images","header_author_uri":"http:\/\/blocknot.es","rating":4.5,"author_block_rating":0,"active_installs":700,"downloads":21004,"num_ratings":11,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"1.1.8":"<ul>\n<li>Added &#039;cat_id&#039; param to cfi_featured_image<\/li>\n<\/ul>","1.1.5":"<ul>\n<li>Loads parent category image if nothing is found before<\/li>\n<\/ul>","1.1.2":"<ul>\n<li>Added &#039;cat_id&#039; param to cfi_featured_image_url<\/li>\n<\/ul>","1.1.0":"<ul>\n<li>Improved cfi_featured_image in category archive pages<\/li>\n<li>Added PHP function: cfi_featured_image_url<\/li>\n<\/ul>","1.0.6":"<ul>\n<li>Added PHP function and shortcode: cfi_featured_image<\/li>\n<\/ul>"},"ratings":{"1":"1","2":0,"3":0,"4":"1","5":"9"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1007316","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1007316","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1012082","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0","1.1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"902408","resolution":"1","location":"assets"}},"screenshots":{"1":"Edit category page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[610,163,86,166],"plugin_category":[50,57],"plugin_contributors":[80946],"plugin_business_model":[],"class_list":["post-29087","plugin","type-plugin","status-publish","hentry","plugin_tags-categories","plugin_tags-images","plugin_tags-post","plugin_tags-posts","plugin_category-media","plugin_category-taxonomy","plugin_contributors-blocknotes","plugin_committers-blocknotes"],"banners":{"banner":"https:\/\/ps.w.org\/category-featured-images\/assets\/banner-772x250.png?rev=1012082","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/category-featured-images\/assets\/icon-128x128.png?rev=1007316","icon_2x":"https:\/\/ps.w.org\/category-featured-images\/assets\/icon-256x256.png?rev=1007316","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/category-featured-images\/assets\/screenshot-1.png?rev=902408","caption":"Edit category page"}],"raw_content":"<!--section=description-->\n<p>This plugin allows to set a featured image for each category.\nPosts without a featured image set will show the category's featured image instead.\nFeatured images usually are placed by the theme in the single post page, in the latest posts page, etc.\nBut can also be shown using the shortcode <em>[cfi_featured_image]<\/em> or the PHP function <em>cfi_featured_image()<\/em>. To get the featured image URL I added the function <em>cfi_featured_image_url()<\/em>.<\/p>\n\n<p>Shortcode\/PHP function optional arguments:<\/p>\n\n<ul>\n<li>'size': 'thumbnail', 'medium', 'large', 'full'<\/li>\n<li>'class': class of the image tag<\/li>\n<li>'alt': alternative text of the image tag<\/li>\n<li>'title': title of the image tag<\/li>\n<li>'cat_id': select a specific category id<\/li>\n<\/ul>\n\n<p>Shortcode example:<\/p>\n\n<pre><code>[cfi_featured_image size=\"large\" title=\"This is a test...\" class=\"my-image\" alt=\"My image\"]\n<\/code><\/pre>\n\n<p>Function example 1:<\/p>\n\n<pre><code>cfi_featured_image( array( 'size' =&gt; 'large', 'title' =&gt; 'This is a test...', 'class' =&gt; 'my-image', 'alt' =&gt; 'My image' ) );\n<\/code><\/pre>\n\n<p>Function example 2:<\/p>\n\n<pre><code>cfi_featured_image_url( array( 'size' =&gt; 'large' ) );\n<\/code><\/pre>\n\n<p>Notes:<\/p>\n\n<ul>\n<li>If a post has more than a category with a featured image the first available is loaded<\/li>\n<li>If a category hasn't a featured image but it has a parent category with a featured image the parent one is loaded<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin<\/li>\n<li>Go in Posts &#092; Categories<\/li>\n<li>Edit a category<\/li>\n<li>Set the category featured image<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1.8<\/h4>\n\n<ul>\n<li>Added 'cat_id' param to cfi_featured_image<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>Loads parent category image if nothing is found before<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Added 'cat_id' param to cfi_featured_image_url<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Improvement: cfi_featured_image in category archive pages shows the current image<\/li>\n<li>New PHP function: cfi_featured_image_url()<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>New shortcode: cfi_featured_image()<\/li>\n<li>New PHP function: cfi_featured_image()<\/li>\n<\/ul>","raw_excerpt":"Set a featured image for all the posts of a category.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29087"}],"author":[{"embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/blocknotes"}],"wp:attachment":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29087"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29087"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29087"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29087"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29087"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}