Title: Advanced Custom Fields: Archive Templates
Author: Imark Image
Published: <strong>অক্টোবৰ 25, 2018</strong>
Last modified: মে’ 25, 2020

---

প্লাগিনৰ সন্ধান কৰক

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/acf-archive.svg)

# Advanced Custom Fields: Archive Templates

 [Imark Image](https://profiles.wordpress.org/imarkimage/)-ৰ দ্বাৰা

[ডাউনল’ড কৰক](https://downloads.wordpress.org/plugin/acf-archive.1.0.6.zip)

 * [বিশদ বিৱৰণ](https://as.wordpress.org/plugins/acf-archive/#description)
 * [পৰ্য্যালোচনা](https://as.wordpress.org/plugins/acf-archive/#reviews)
 * [বিকাশ](https://as.wordpress.org/plugins/acf-archive/#developers)

 [সাহায্য](https://wordpress.org/support/plugin/acf-archive/)

## বৰ্ণনা

ACF Archives is a little plugin for helping you attach ACF fields to the archive
template.
 The plugin will add a submenu for each public custom post type with archive
defined and then you can select under ACF rules box.

### Want to add or remove the submenu for other custom post types?

Here is a code example you can add to to your theme functions.php

    ```
        add_filter( 'acf_archive_post_types', 'change_acf_archive_cpt' );
        function change_acf_archive_cpt( $cpts ) {
            // 'book' and 'movie' are the cpt key.

            // Remove cpt
            unset( $cpts['book'] );

            // Add cpt
            $cpts['movie'] = Movies Archive;

            return $cpts;
        }
    ```

### Get the acf field on archive page

    ```
        $object = get_queried_object();
        $field = get_field( 'field_name', $object->name );

        var_dump( $field );
    ```

### From within WordPress

 1. Visit ‘Plugins > Add New’
 2. Search for ‘acf archive’
 3. Activate ACF Archive from your Plugins page.

### Manually

 1. Upload the `acf-archive` folder to the `/wp-content/plugins/` directory
 2. Activate the ACF Archive plugin through the ‘Plugins’ menu in WordPress

## স্ক্ৰীনশ্বট

[⌊New Archive ACF rule under ACF rules⌉⌊New Archive ACF rule under ACF rules⌉[

New Archive ACF rule under ACF rules

[⌊ACF Archive menu page under each custom post type with archive enabled.⌉⌊ACF Archive
menu page under each custom post type with archive enabled.⌉[

ACF Archive menu page under each custom post type with archive enabled.

## পৰ্য্যালোচনা

![](https://secure.gravatar.com/avatar/8f70189aabe08772467f30aa7f2248a9fc3e19c7f84077db478cf43be9d1f1e5?
s=60&d=retro&r=g)

### 󠀁[Nice work](https://wordpress.org/support/topic/nice-work-450/)󠁿

 [Theo Platica](https://profiles.wordpress.org/platcatheo/) মাৰ্চ 28, 2020

Thank you for your contribution, but in order to expand the correct menu item, I
had to make some edits to your plugin: /** * Load the ACF Assets only on archive
options page * @param string $hook_suffix * @return void */ public function admin_enqueue_scripts(
$hook_suffix ) { $screen = get_current_screen(); if ( strpos($_GET['page'], 'archive-
options') !== FALSE ) { acf_enqueue_scripts(); } } /** * Add ACF menu page for each
custom post type * * @param string $label * @param string $menu */ private function
add_menu( $label, $menu, $post_type ) { $page_name = sprintf( __( '%s Archive', '
acf-archive' ), $label); $options = [ 'parent_slug' => $menu, 'page_title' => $page_name,'
menu_title' => $page_name, 'capability' => 'edit_posts', 'menu_slug' => 'archive-
options-'.$post_type, ]; add_submenu_page( $options['parent_slug'], $options['page_title'],
$options['menu_title'], $options['capability'], $options['menu_slug'], [ $this, '
render_menu' ] ); } /** * Check if we are in the current post type for showing the
fields. * * @param $match * @param $rule * @param $options * @return bool */ public
function location_rules_match_archive( $match, $rule, $options ) { if ( ! isset(
$_GET['post_type'] ) || ! isset( $_GET['page'] ) ) { return $match; } return $_GET['
post_type'] == $rule['value'] && strpos($_GET['page'], 'archive-options') !== FALSE;}

![](https://secure.gravatar.com/avatar/b6a3693f9bef78e795db67940250095af856b91f8b9ebcdebf828ab886430ab0?
s=60&d=retro&r=g)

### 󠀁[Very handy plugin](https://wordpress.org/support/topic/very-handy-plugin-77/)󠁿

 [kiwimeg](https://profiles.wordpress.org/kiwimeg/) ছেপ্টেম্বৰ 16, 2019

Thanks so much. This worked exactly as expected.

 [ আটাই 1টা পৰ্য্যালোচনা পঢ়ক ](https://wordpress.org/support/plugin/acf-archive/reviews/)

## অৱদানকাৰী আৰু বিকাশকাৰীসকল

“Advanced Custom Fields: Archive Templates” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে 
এই প্লাগিনত অৱদান আগবঢ়াইছে।

অৱদানকাৰীসকল

 *   [ Imark Image ](https://profiles.wordpress.org/imarkimage/)
 *   [ yehudah ](https://profiles.wordpress.org/yehudah/)
 *   [ Ido Friedlander ](https://profiles.wordpress.org/idofri/)
 *   [ Refael Iliaguyev ](https://profiles.wordpress.org/rellect/)

[আপোনাৰ ভাষাত “Advanced Custom Fields: Archive Templates” অনুবাদ কৰক।](https://translate.wordpress.org/projects/wp-plugins/acf-archive)

### বিকাশৰ প্ৰতি আগ্ৰহী?

[ক’ড ব্ৰাউজ কৰক](https://plugins.trac.wordpress.org/browser/acf-archive/), [SVN ৰিপজিটৰী](https://plugins.svn.wordpress.org/acf-archive/)
চাওক নাইবা [RSS](https://plugins.trac.wordpress.org/log/acf-archive/?limit=100&mode=stop_on_copy&format=rss)-
দ্বাৰা [বিকাশৰ পঞ্জী](https://plugins.trac.wordpress.org/log/acf-archive/) ছাবস্ক্ৰাইব
কৰক।

## সলনি-পঞ্জী

#### 1.0.6

Just update some info

#### 1.0.4

Fixed: Rule match bug

#### 1.0.3

Compatibility when ACF is loaded on the theme

#### 1.0.2

Code refactor and better compatibility

#### 1.1

Minor fix for CPT UI

#### 1.0

Initial Release

## মেটা

 *  **1.0.6** সংস্কৰণ
 *  **6 বছৰ আগত** শেষবাৰ আপডে’ট হৈছিল
 *  সক্ৰিয় ইনষ্টলেশ্যন **800+**
 *  WordPress-ৰ সংস্কৰণ ** 4.1 বা তাতকৈ ওপৰৰ **
 *  ইমানলৈকে পৰীক্ষা কৰা হৈছে **5.4.19**
 *  PHP-ৰ সংস্কৰণ ** 5.4 বা তাতকৈ ওপৰৰ **
 *  ভাষা
 * [English (US)](https://wordpress.org/plugins/acf-archive/)
 * [acf](https://as.wordpress.org/plugins/tags/acf/)[advanced custom fields](https://as.wordpress.org/plugins/tags/advanced-custom-fields/)
 *  টেগবোৰ
 *  [উচ্চখাপৰ ভিউ](https://as.wordpress.org/plugins/acf-archive/advanced/)

## ৰে’টিংবোৰ

 5টাৰ ভিতৰত 5টা তৰা।

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/acf-archive/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/acf-archive/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/acf-archive/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/acf-archive/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/acf-archive/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/acf-archive/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/acf-archive/reviews/)

## অৱদানকাৰীসকল

 *   [ Imark Image ](https://profiles.wordpress.org/imarkimage/)
 *   [ yehudah ](https://profiles.wordpress.org/yehudah/)
 *   [ Ido Friedlander ](https://profiles.wordpress.org/idofri/)
 *   [ Refael Iliaguyev ](https://profiles.wordpress.org/rellect/)

## সাহায্য

কিবা ক’বলগীয়া আছে? সহায় লাগে?

 [সাহায্যৰ ফ’ৰাম চাওক](https://wordpress.org/support/plugin/acf-archive/)