Custom Query Blocks

Custom Query Blocks

توسط

A WordPress plugin for displaying posts and terms (e.g., categories) using a Gutenberg block. Works well with posts, pages, custom post types, taxonomies, and terms.

Bonus: archive mapping.

Archive Pages Pro is here: Map post types, terms, authors, and more to pages. Learn more about Archive Pages Pro

  • Map your post type archives to a page for customization of the post type archive page.
  • Map your category archives to a page for customization of the term archive page.
  • Map your 404 template to a page and easily customize your 404 page.

View Documentation and Overview

The plugin currently has three blocks:

Post Type Archive Mapping

This plugin allows you to map your custom post type archive pages. Just create a page and go to Settings->Reading to set the page for your archive.

Ensure your post types have has_archive set to true.

  • Select a Public page to use as your post type archive page.
  • View the archive and you will see the page content instead of the archive content.
  • Use page templates on your pages for flexibility.
  • Custom Gutenberg block for showing your posts.

Term Archive Mapping

This plugin also allows you to map your term archives to a page. Just create a page and go edit your term to set the archive page.

  • Create a public page to use as your term archive.
  • Visit the edit term page and select the page.
  • View the term and you will see your selected page.
  • Use Gutenberg on your public page to customize the archive.

404 Page Mapping

This plugin allows you to map a page to your 404 template, so you can customize a 404 page as needed.

Development is on GitHub

Development is on GitHub

Archive Pages Pro

Archive Pages Pro has all the mapping feature of this plugin and more. You can map post types, terms, authors, and more to pages. Learn more about Archive Pages Pro

  1. Just unzip and upload the “post-type-archive-mapping” folder to your ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Post Type Archive Mapping

  1. Create a custom post type that has an archive
  2. Create a page with a custom template. Use the Gutenberg block to show off posts in that Custom Post Type.
  3. Go to Settings->Reading and assign the page to the custom post type archive
  4. Go to the post type archive and observe the page content is now the archive

Term Archive Mapping

  1. Create a public page to use as your term archive.
  2. Visit the edit term page and select the page.
  3. View the term and you will see your selected page.
  4. Use Gutenberg on your public page to customize the archive.

404 Template Mapping

  1. Visit Settings->Reading and map your 404 template to a page.
  2. Customize the new 404 page.
  3. Navigate to a broken URL to preview the 404 page.

سوالات متداول

I don’t see the post types. What’s wrong?

Make sure your post type has has_archive set to true and show_in_rest set to true.

Can you do posts instead of pages?

This plugin will only allow mapping to pages.

Does this plugin work with term (e.g., category) archives?

Yes. Edit a term and you can map it to any page.

I need help. Can you help me?

Yes, just post in the support forums here and I’ll do my best to address your issue.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
5.6.0 478 کیلوبایت -
دانلود
×
★★★★★
★★★★★
4.6 /5 (25 نظر)

قیمت:

رایگان

نگارش

5.6.0

آخرین انتشار

15 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

800+

نگارش وردپرس

وردپرس 6.5+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 7.2+

نسخه ها

1 نسخه