{"id":93159,"date":"2018-10-25T12:22:53","date_gmt":"2018-10-25T12:22:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/acf-archive\/"},"modified":"2020-05-25T18:54:30","modified_gmt":"2020-05-25T18:54:30","slug":"acf-archive","status":"publish","type":"plugin","link":"https:\/\/hat.wordpress.org\/plugins\/acf-archive\/","author":15834391,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.6","stable_tag":"1.0.6","tested":"5.4.19","requires":"4.1","requires_php":"5.4","requires_plugins":"","header_name":"ACF Archive","header_author":"Imark Image","header_description":"ACF Archives is a little plugin for helping you attach ACF fields to the archive template.","assets_banners_color":"","last_updated":"2020-05-25 18:54:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.imark.co.il\/","header_author_uri":"https:\/\/www.imark.co.il","rating":5,"author_block_rating":0,"active_installs":900,"downloads":12472,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1962923","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1962923","resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"New Archive ACF rule under ACF rules","2":"ACF Archive menu page under each custom post type with archive enabled."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,163492,2217],"plugin_category":[59],"plugin_contributors":[91125,163493,163494,79143],"plugin_business_model":[],"class_list":["post-93159","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-acf-archive","plugin_tags-advanced-custom-fields","plugin_category-utilities-and-tools","plugin_contributors-idofri","plugin_contributors-imarkimage","plugin_contributors-rellect","plugin_contributors-yehudah","plugin_committers-imarkimage","plugin_committers-yehudah"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/acf-archive.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-archive\/assets\/screenshot-1.png?rev=1962923","caption":"New Archive ACF rule under ACF rules"},{"src":"https:\/\/ps.w.org\/acf-archive\/assets\/screenshot-2.png?rev=1962923","caption":"ACF Archive menu page under each custom post type with archive enabled."}],"raw_content":"<!--section=description-->\n<p>ACF Archives is a little plugin for helping you attach ACF fields to the archive template.\nThe plugin will add a submenu for each public custom post type with archive defined\nand then you can select under ACF rules box.<\/p>\n\n<h3>Want to add or remove the submenu for other custom post types?<\/h3>\n\n<p>Here is a code example you can add to to your theme functions.php<\/p>\n\n<pre><code>    add_filter( 'acf_archive_post_types', 'change_acf_archive_cpt' );\n    function change_acf_archive_cpt( $cpts ) {\n        \/\/ 'book' and 'movie' are the cpt key.\n\n        \/\/ Remove cpt\n        unset( $cpts['book'] );\n\n        \/\/ Add cpt\n        $cpts['movie'] = Movies Archive;\n\n        return $cpts;\n    }\n<\/code><\/pre>\n\n<h3>Get the acf field on archive page<\/h3>\n\n<pre><code>    $object = get_queried_object();\n    $field = get_field( 'field_name', $object-&gt;name );\n\n    var_dump( $field );\n<\/code><\/pre>\n\n<h3>From within WordPress<\/h3>\n\n<ol>\n<li>Visit 'Plugins &gt; Add New'<\/li>\n<li>Search for 'acf archive'<\/li>\n<li>Activate ACF Archive from your Plugins page.<\/li>\n<\/ol>\n\n<h3>Manually<\/h3>\n\n<ol>\n<li>Upload the <code>acf-archive<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the ACF Archive plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.6<\/h4>\n\n<p>Just update some info<\/p>\n\n<h4>1.0.4<\/h4>\n\n<p>Fixed: Rule match bug<\/p>\n\n<h4>1.0.3<\/h4>\n\n<p>Compatibility when ACF is loaded on the theme<\/p>\n\n<h4>1.0.2<\/h4>\n\n<p>Code refactor and better compatibility<\/p>\n\n<h4>1.1<\/h4>\n\n<p>Minor fix for CPT UI<\/p>\n\n<h4>1.0<\/h4>\n\n<p>Initial Release<\/p>","raw_excerpt":"ACF Archive is a little plugin for helping you attach ACF fields to the archive template.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/93159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=93159"}],"author":[{"embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/imarkimage"}],"wp:attachment":[{"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=93159"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=93159"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=93159"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=93159"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=93159"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hat.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=93159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}