This is a fantastic plugin! It should be part of core!
It’s an awesome block, flexible and super customizable. Very useful to build customized archived pages. I was looking for this exact thing and it took me long to find it. I think it deserves more attention and probably better branding or renaming.
I use the Archive Mapping and Post Selector Gutenberg Block on multiple sites. It contains many options and gives me a good control of what I want to see in the post preview list.
Frequently Asked Questions
Please report the issue in a comment below or visit us on GitHub and file an issue.
Make sure your post type has has_archive set to true and show_in_rest set to true.
Only pages can be mapped to an archive, term archive, or 404 page.
The Custom Post Types block supports custom fields, but maybe you need to customize the output?
<?php/**
* Filter the custom field value.
*
* Filter the custom field value.
*
* @since 3.0.0
*
* @param mixed $custom_field_value The custom field value.
* @param string $maybe_custom_field The custom field name.
* @param int $post_id The Post ID.
*/
$custom_field_value = apply_filters( 'ptam_custom_field', $custom_field_value, $maybe_custom_field );
Code language:PHP(php)