Title: Post Type Archive Pages
Author: Darren Grant
Published: <strong>ডিসেম্বর 1, 2019</strong>
Last modified: জানুয়ারি 30, 2020

---

প্লাগিন অনুসন্ধান

![](https://ps.w.org/post-type-archive-pages/assets/banner-772x250.png?rev=2204123)

এই প্লাগইনটি **ওয়ার্ডপ্রেসের সর্বশেষ ৩টি মেজর রিলিজের সাথে পরীক্ষা করা হয়নি**। এটি
আর রক্ষণাবেক্ষণ বা সমর্থন করা নাও হতে পারে এবং ওয়ার্ডপ্রেসের আরও সাম্প্রতিক সংস্করণগুলোর
সাথে ব্যবহার করার সময় কম্প্যাটিবিলিটি ইস্যু থাকতে পারে।

![](https://ps.w.org/post-type-archive-pages/assets/icon-256x256.png?rev=2204123)

# Post Type Archive Pages

 তৈরি করেছেন [Darren Grant](https://profiles.wordpress.org/darrengrant/)

[Download](https://downloads.wordpress.org/plugin/post-type-archive-pages.zip)

 * [বিস্তারিত](https://bn.wordpress.org/plugins/post-type-archive-pages/#description)
 * [রিভিউ](https://bn.wordpress.org/plugins/post-type-archive-pages/#reviews)
 * [ডেভেলপমেন্ট](https://bn.wordpress.org/plugins/post-type-archive-pages/#developers)

 [Support](https://wordpress.org/support/plugin/post-type-archive-pages/)

## Description

Post Type Archive Pages allows you to select pages from within your content page
structure to be the archive pages for your custom post types. This gives you control
of the permalink for your archive pages and allows them to be nested under other
pages. It also sets the permalink base for single posts of that post type and term
archive for the post type’s taxonomies.

Once the plugin is installed and activated you’ll be able to select the archive 
page for each of your registered post types under Settings > Reading.

### Templating

WordPress will look for archive page templates for the pages that you set as archive
pages. So _archive-$posttype.php_ and _archive.php_ will be used rather than _page.
php_.

There are also a few functions available that may be helpful in building themes.
They are accessed on the plugin’s main instance, which is returned by a call to 
_post\_type\_archive\_pages()_.

#### get_archive_page

Returns the page object for the archive page of the provided post type slug. If 
called from a post type archive template, a singular template or a term archive 
and a slug isn’t provided, the relative post type will be used. e.g.

    ```
    $page = post_type_archive_pages()->get_archive_page('book');
    ```

#### get_archive_page_post_type

Returns the post type object that the provided page ID is the archive page for. 
e.g.

    ```
    $postType = post_type_archive_pages()->get_archive_page_post_type(5);
    ```

### Menu – Enhancements

Archive pages added to the menu will be marked as the current menu item when viewing
the post type archive and the current menu item’s parent / ancestor when viewing
a post of that type. The related CSS classes will also be applied.

### Advanced Custom Fields – Enhancements

This plugin is particularly effective when paired with [Advanced Custom Fields](https://www.advancedcustomfields.com/).
It registers additional _page type_ location rules allowing you to add fields to
all archive pages or the archive page for a particular post type. So if your listing
page requires content like a description or header image you can place fields for
those on the archive page itself.

To access fields like these in your archive template you need only call

    ```
    $desc = get_field( 'description', post_type_archive_pages()->get_archive_page() );
    ```

### Developer Hooks

The plugin attempts to set defaults that should work best for most scenarios. But
there are some places to hook in and alter these defaults where needed.

#### Filter – post_type_archive_pages/supported_post_types

By default you will be able to set an archive page for any public post type other
than the built in post types of _page_ and _post_. This hook allows you to filter
the default array of supported post types to add or remove. The array should contain
slugs of valid post types. Please note that the array keys are not important in 
it’s use, but contain the slugs to allow you to easily unset values.

    ```
    add_filter( 'post_type_archive_pages/supported_post_types', function( $post_types ){
        unset( $post_types['book'] );
        return $post_types;
    } );
    ```

#### Filter – post_type_archive_pages/taxonomy_post_type

By default taxonomy term archives will inherit the archive page permalink structure
of a post type if that post type is the only one that the taxonomy is registered
on. For instance if you had a _publisher_ taxonomy the permalink for a term archive
might become _/books/publisher/penguin_. With _/books_ being the permlaink of the
archive page, _publisher_ the taxonomy slug and _penguin_ the term slug. This filter
allows you to alter the post type who’s archive page permalink structure will be
inherited for a given taxonomy.

    ```
    add_filter( 'post_type_archive_pages/taxonomy_post_type', function( $post_type, $taxonomy ){
        if ( $taxonomy === 'publisher' ) return null;
        return $post_type;
    }, 10, 2 );
    ```

## Screenshots

 * [[
 * Archive pages can be selected under the reading settings.
 * [[
 * Archive pages are denoted on the pages table view.
 * [[
 * Why paired with ACF you can add field groups to archive pages.
 * [[
 * Archive page with an ACF field group.

## Reviews

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

### 󠀁[Super happy this niche plugin exists!](https://wordpress.org/support/topic/super-happy-this-niche-plugin-exists/)󠁿

 [Matt](https://profiles.wordpress.org/matt3224/) জুন 7, 2020

After sometime googling and trying out some code in functions.php i couldn’t get
anything that checked all the boxes, then i found this and it works a treat!

 [ সব রিভিউ পড়ুন ](https://wordpress.org/support/plugin/post-type-archive-pages/reviews/)

## ডেভেলপার এবং কন্ট্রিবিউটর

“Post Type Archive Pages” is open source software. The following people have contributed
to this plugin.

কন্ট্রিবিউটর

 *   [ Darren Grant ](https://profiles.wordpress.org/darrengrant/)

[Translate “Post Type Archive Pages” into your language.](https://translate.wordpress.org/projects/wp-plugins/post-type-archive-pages)

### ডেভেলপমেন্ট এ আগ্রহী?

[Browse the code](https://plugins.trac.wordpress.org/browser/post-type-archive-pages/),
check out the [SVN repository](https://plugins.svn.wordpress.org/post-type-archive-pages/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/post-type-archive-pages/)
by [RSS](https://plugins.trac.wordpress.org/log/post-type-archive-pages/?limit=100&mode=stop_on_copy&format=rss).

## মেটা

 *  Version **1.0.4**
 *  শেষ আপডেট করা হয়েছে **6 বছর আগে**
 *  Active installations **300+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **5.3.21**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/post-type-archive-pages/)
 * ট্যাগ
 * [archive pages](https://bn.wordpress.org/plugins/tags/archive-pages/)[post types](https://bn.wordpress.org/plugins/tags/post-types/)
 * টি
 *  [এডভান্সড ভিউ](https://bn.wordpress.org/plugins/post-type-archive-pages/advanced/)

## Ratings

 ৫ স্টার এর মধ্যে 5।

 *  [  1টি 5-স্টার রিভিউ     ](https://wordpress.org/support/plugin/post-type-archive-pages/reviews/?filter=5)
 *  [  0টি 4-স্টার রিভিউ     ](https://wordpress.org/support/plugin/post-type-archive-pages/reviews/?filter=4)
 *  [  0টি 3-স্টার রিভিউ     ](https://wordpress.org/support/plugin/post-type-archive-pages/reviews/?filter=3)
 *  [  0টি 2-স্টার রিভিউ     ](https://wordpress.org/support/plugin/post-type-archive-pages/reviews/?filter=2)
 *  [  0টি 1-স্টার রিভিউ     ](https://wordpress.org/support/plugin/post-type-archive-pages/reviews/?filter=1)

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

[সব রিভিউ দেখুন](https://wordpress.org/support/plugin/post-type-archive-pages/reviews/)

## কন্ট্রিবিউটর

 *   [ Darren Grant ](https://profiles.wordpress.org/darrengrant/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/post-type-archive-pages/)

## ডোনেট

Would you like to support the advancement of this plugin?

 [ এই প্লাগিনে ডোনেট করুন ](http://paypal.me/darrenthedev)