Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…
About Custom Post Type Widgets
The Custom Post Type Widgets plugin allows you to add default custom post type widgets to your website. You can filter the widgets by registered Custom Post Type or Taxonomy. The plugin includes widgets for displaying recent posts, archives, categories, a calendar, recent comments, a tag cloud, and a search form.Screenshots







Frequently asked questions
What does the Recent Posts (Custom Post Type) widget do?
The Recent Posts (Custom Post Type) widget displays a list of the most recent custom posts.
What options does the Recent Posts (Custom Post Type) widget have?
The Recent Posts (Custom Post Type) widget has options such as Title, Post Type, Number of posts to show, and Display post date.
What does the Archives (Custom Post Type) widget do?
The Archives (Custom Post Type) widget displays a list of archive links for each month that has custom posts.
What options does the Archives (Custom Post Type) widget have?
The Archives (Custom Post Type) widget has options such as Title, Post Type, Archive Type, Display as dropdown, Show post counts, and Order.
What does the Categories (Custom Post Type) widget do?
The Categories (Custom Post Type) widget displays a list of categories that has custom posts.
Changelog
1.5.2
- update japanese translation
- tested up to 6.2.0
- fix composer scripts
- update github actions
- fix load_textdomain method for testability
- add msgmerge to composer scripts
- add support section and enhance contribution section to README
- fix license
- update screenshots
1.5.1
- edit README
- fix the priority of the rewrite rule of register_post_type()
1.5.0
- tested up to 6.0.0
- fix wp-plugin-unit-test.yml
- update japanese translation
- update pot
- fix test case
- add format argument
- supports translation
- add ASC/DESC order option for archive widget
- add constants CUSTOM_POST_TYPE_WIDGETS_DISABLE_LINKS_ARCHIVE and CUSTOM_POST_TYPE_WIDGETS_DISABLE_LINKS_CALENDAR
- fix rewrite slug for has_archive setting
- rename variable name
1.4.2
- add composer script
- remove makepot:php composer script
- change action hook
- rename method name
- fix hook to load_textdomain for translate on Widgets Screen
- replace assert from assertEquals to assertSame
1.4.1
- add test case
- fix README
- update wp-plugin-unit-test.yml
- bump up yoast/phpunit-polyfills version
- change os to ubuntu-20.04 for ci
- add Upgrade Notice
- change requires at least to wordpress 4.9
- change requires to PHP 5.6
- fix: fix pot and translation
- fix label
- fix test unit configuration and lint ruleset
- update composer.json
- add timeout-minutes to workflows
- add phpunit-polyfills
- update install-wp-tests.sh
- fix .editorconfig
- tested up to 5.8.0
- fix github workflows
1.4.0
- update screenshot
- tested up to 5.6.2
- update japanese translation
- update pot
- add init method, change method name
- separate class into separate a file
- add sponsor link
- add dropdown label option with categories widget
- add archive type option with archive widget
- add donate link
- add filter hooks, custom_post_type_widgets/archive/get_month_link_custom_post_type, custom_post_type_widgets/archive/trim_post_type, custom_post_type_widgets/calendar/get_day_link_custom_post_type, custom_post_type_widgets/calendar/get_month_link_custom_post_type
- add FUNDING.yml
- add GitHub actions for CI/CD, remove .travis.yml
- imporve code with phpcs, phpmd and phpstan
1.3.0
- edit README
- update japanese translation
- update pot
- fix test case
- imporve code with phpcs, phpmd and phpstan
- update testunit configuration
- restructure code to perform a single task
- add denying direct file access
- divide as load_textdomain function
- fix composer.json
- change calendar widget markup
- add hook custom_post_type_widgets/calendar/get_custom_post_type_calendar
- fix get_custom_post_type_calendar method
- change to call method directly instead of via hook in the calendar widget
1.2.1
- replace from id attribute to calss attribute in the calendar
- add any matching value as all types
1.2.0
- change Requires at least version 4.0
- [Calendar widget] cache the calendar
- improve filter hooks and action hooks
- fix test case
- refactoring
- add customize_selective_refresh
- fix phpcs.ruleset.xml
- replace from strip_tags to wp_strip_all_tags
- replace from _e to esc_html_e
- add PHPDoc
- fix header
- add reset-wp-tests.sh, uninstall-wp-tests.sh
- fix indent and reformat with phpcs and phpcbf
- add composer.json for test
- add static code analysis config
1.1.3
- change Requires at least version 3.7
- fix add_action
- add sanitize
- add tests
1.1.2
- [Categories widget] change value_field of the cat_args from name to slug
- limit the scope of the filter hook
- [Search widget] rename the name of the filter hook
- fix the initial value of the posttype, the archive_name and the taxonomy
1.1.1
- [Search widget] add apply_filters ‘WP_Custom_Post_Type_Widgets_Search_filter_post_type’
- improve function ‘query_search_filter_only_post_type’ [Search widget]
- [Search widget] change to add_action ‘pre_get_posts’ run only on the front-end page
1.1.0
- [Comments widgets, Search widgets] add ‘All’ to posttype option
- refactoring
- add Custom Post Type Search widget
1.0.4
- fix cache key of Custom Post Type Calendar widget
- support for custom post type slugs
- add german translation
1.0.3
- add italian translation
1.0.2
- fix $cat_args[‘show_option_none’]
1.0.1
- fix the ‘name’ param of get_terms()
1.0.0
- Initial release