Custom Post Type Widget Blocks

Beschreibung

This WordPress plugin adds default Custom Post Type Widgets to the Block Editor.
You can filter by registered Custom Post Type or Taxonomy on the Block Editor.

Compatibility

  • WordPress version 5.4 or later
  • Gutenberg version 7.5 or later

Descriptions of Widget Blocks

Latest Posts (Custom Post Type)

display a list of your most recent custom posts.

Archives (Custom Post Type)

display a monthly archive of your custom posts.

Categories (Custom Post Type)

display a list of categories that has custom posts.

Calendar (Custom Post Type)

display a calendar of your site’s posts.

Latest Comments (Custom Post Type)

display a list of your most recent comments.

Tag Cloud (Custom Post Type)

display a list of the your most used tags in a tag cloud.

Search (Custom Post Type)

A search form for your site.

Hooks

Custom Post Type Widgets has its own hooks. See the reference for details.

Reference: https://github.com/thingsym/custom-post-type-widget-blocks#hooks

Test Matrix

For operation compatibility between PHP version and WordPress version, see below Travis CI.

Contribution

Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.

If you would like to contribute, here are some notes and guidlines.

  • All development happens on the develop branch, so it is always the most up-to-date
  • The master branch only contains tagged releases
  • If you are going to be submitting a pull request, please submit your pull request to the develop branch
  • See about forking and pull requests

Screenshots

  • Block category 'Custom Post Type Widget Blocks'

Blöcke

Dieses Plugin unterstützt 7 Blöcke.

custom-post-type-widget-blocks/categories
Custom Post Type Widget Blocks
custom-post-type-widget-blocks/tag-cloud
Custom Post Type Widget Blocks
custom-post-type-widget-blocks/archives
Custom Post Type Widget Blocks
custom-post-type-widget-blocks/calendar
Custom Post Type Widget Blocks
custom-post-type-widget-blocks/search
Custom Post Type Widget Blocks
custom-post-type-widget-blocks/latest-comments
Custom Post Type Widget Blocks
custom-post-type-widget-blocks/latest-posts
Custom Post Type Widget Blocks

Installation

  1. Download and unzip files. Or install Custom Post Type Widget Blocks plugin using the WordPress plugin installer. In that case, skip 2.
  2. Upload „custom-post-type-widget-blocks“ to the „/wp-content/plugins/“ directory.
  3. Activate the plugin through the ‚Plugins‘ menu in WordPress.
  4. Add a widget block in block category ‚Custom Post Type Widget Blocks‘ to the Block Editor.
  5. Have fun!

IMPORTANT: By default, WordPress will not work Date-based permalinks of custom post type. Recommend that you install the plugin in order to edit the permalink, if you are using a Date-based permalinks.

And try the following: Custom Post Type Rewrite

Rezensionen

Für dieses Plugin gibt es keine Rezensionen.

Mitwirkende & Entwickler

„Custom Post Type Widget Blocks“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Custom Post Type Widget Blocks“ wurde in 1 Sprache übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „Custom Post Type Widget Blocks“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

1.1.1

  • check class exists
  • imporve code with phpcs, phpmd and phpstan
  • reformat
  • add strict mode

1.1.0

  • update japanese translation
  • update pot
  • imporve code with phpcs, phpmd and phpstan
  • update testunit configuration
  • add Disabled to latest posts block
  • add unstable__bootstrapServerSideBlockDefinitions
  • fix test case
  • change wp cache name
  • add hooks
  • change hook tags
  • add loading asset to register_block_type argument
  • change asset loading function from wp_enqueue_* to wp_register_*
  • add checking register_block_type function
  • change wp_enqueue_script dependency setting to use asset file
  • add CUSTOM_POST_TYPE_WIDGET_BLOCKS_PATH constant

1.0.1

  • remove prefix __ with define name
  • add LICENSE file

1.0.0

  • Initial release