{"id":34220,"date":"2015-01-28T08:04:21","date_gmt":"2015-01-28T08:04:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-post-type-widgets\/"},"modified":"2024-08-22T07:06:08","modified_gmt":"2024-08-22T07:06:08","slug":"custom-post-type-widgets","status":"publish","type":"plugin","link":"https:\/\/ca-valencia.wordpress.org\/plugins\/custom-post-type-widgets\/","author":8903959,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.2","stable_tag":"1.5.2","tested":"6.6.5","requires":"4.9","requires_php":"5.6","requires_plugins":null,"header_name":"Custom Post Type Widgets","header_author":"thingsym","header_description":"","assets_banners_color":"","last_updated":"2024-08-22 07:06:08","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/sponsors\/thingsym","header_plugin_uri":"https:\/\/github.com\/thingsym\/custom-post-type-widgets","header_author_uri":"https:\/\/www.thingslabo.com\/","rating":4.8,"author_block_rating":0,"active_installs":10000,"downloads":213680,"num_ratings":14,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"thingsym","date":"2015-01-28 08:06:23"},"1.0.1":{"tag":"1.0.1","author":"thingsym","date":"2015-05-13 09:07:50"},"1.0.2":{"tag":"1.0.2","author":"thingsym","date":"2015-05-26 07:09:04"},"1.0.3":{"tag":"1.0.3","author":"thingsym","date":"2015-11-10 11:03:57"},"1.0.4":{"tag":"1.0.4","author":"thingsym","date":"2016-02-17 08:04:58"},"1.1.0":{"tag":"1.1.0","author":"thingsym","date":"2016-04-14 07:55:02"},"1.1.1":{"tag":"1.1.1","author":"thingsym","date":"2016-04-27 08:14:03"},"1.1.2":{"tag":"1.1.2","author":"thingsym","date":"2016-10-10 07:47:26"},"1.1.3":{"tag":"1.1.3","author":"thingsym","date":"2019-01-16 08:47:52"},"1.2.0":{"tag":"1.2.0","author":"thingsym","date":"2019-08-10 09:01:42"},"1.2.1":{"tag":"1.2.1","author":"thingsym","date":"2019-12-05 08:18:44"},"1.3.0":{"tag":"1.3.0","author":"thingsym","date":"2020-08-16 08:30:38"},"1.4.0":{"tag":"1.4.0","author":"thingsym","date":"2021-07-23 12:02:01"},"1.4.1":{"tag":"1.4.1","author":"thingsym","date":"2022-02-01 11:16:11"},"1.4.2":{"tag":"1.4.2","author":"thingsym","date":"2022-02-25 09:23:29"},"1.5.0":{"tag":"1.5.0","author":"thingsym","date":"2022-05-25 07:30:09"},"1.5.1":{"tag":"1.5.1","author":"thingsym","date":"2022-05-27 08:56:03"},"1.5.2":{"tag":"1.5.2","author":"thingsym","date":"2024-08-22 07:06:08"}},"upgrade_notice":{"1.4.1":"<ul>\n<li>Requires at least version 4.9 of the WordPress<\/li>\n<li>Requires PHP version 5.6<\/li>\n<\/ul>","1.2.0":"<ul>\n<li>Requires at least version 4.0 of the WordPress<\/li>\n<\/ul>","1.1.3":"<ul>\n<li>Requires at least version 3.7 of the WordPress<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":1,"4":1,"5":12},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.1.1","1.1.2","1.1.3","1.2.0","1.2.1","1.3.0","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.5.2"],"block_files":[],"assets_screenshots":{"screenshot-7.png":{"filename":"screenshot-7.png","revision":3139483,"resolution":"7","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3139483,"resolution":"3","location":"plugin"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3139483,"resolution":"5","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3139483,"resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":3139483,"resolution":"1","location":"plugin"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3139483,"resolution":"4","location":"plugin"},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3139483,"resolution":"6","location":"plugin"}},"screenshots":{"1":"Recent Posts (Custom Post Type)","2":"Archives (Custom Post Type)","3":"Categories (Custom Post Type)","4":"Calendar (Custom Post Type)","5":"Recent Comments (Custom Post Type)","6":"Tag Cloud (Custom Post Type)","7":"Search (Custom Post Type)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1794,91,162,241],"plugin_category":[43,57],"plugin_contributors":[78488],"plugin_business_model":[],"class_list":["post-34220","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-post-type","plugin_tags-taxonomy","plugin_tags-widget","plugin_tags-widgets","plugin_category-customization","plugin_category-taxonomy","plugin_contributors-thingsym","plugin_committers-thingsym"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-post-type-widgets.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/custom-post-type-widgets\/trunk\/screenshot-1.png?rev=3139483","caption":"Recent Posts (Custom Post Type)"},{"src":"https:\/\/ps.w.org\/custom-post-type-widgets\/trunk\/screenshot-2.png?rev=3139483","caption":"Archives (Custom Post Type)"},{"src":"https:\/\/ps.w.org\/custom-post-type-widgets\/trunk\/screenshot-3.png?rev=3139483","caption":"Categories (Custom Post Type)"},{"src":"https:\/\/ps.w.org\/custom-post-type-widgets\/trunk\/screenshot-4.png?rev=3139483","caption":"Calendar (Custom Post Type)"},{"src":"https:\/\/ps.w.org\/custom-post-type-widgets\/trunk\/screenshot-5.png?rev=3139483","caption":"Recent Comments (Custom Post Type)"},{"src":"https:\/\/ps.w.org\/custom-post-type-widgets\/trunk\/screenshot-6.png?rev=3139483","caption":"Tag Cloud (Custom Post Type)"},{"src":"https:\/\/ps.w.org\/custom-post-type-widgets\/trunk\/screenshot-7.png?rev=3139483","caption":"Search (Custom Post Type)"}],"raw_content":"<!--section=description-->\n<p>Custom Post Type Widgets plugin adds default custom post type widgets.\nYou can filter by registered Custom Post Type or Taxonomy on widgets.<\/p>\n\n<h4>Descriptions of Widgets<\/h4>\n\n<h4>Recent Posts (Custom Post Type)<\/h4>\n\n<p>display a list of the most recent custom posts.<\/p>\n\n<ul>\n<li><strong>Title<\/strong> - description that appears over the list of recent custom posts.<\/li>\n<li><strong>Post Type<\/strong> - if selected, filter by a custom post type. (e.g. post).<\/li>\n<li><strong>Number of posts to show (at most 15)<\/strong> - enter the number of posts to display.<\/li>\n<li><strong>Display post date?<\/strong> - if checked, display post date.<\/li>\n<\/ul>\n\n<h4>Archives (Custom Post Type)<\/h4>\n\n<p>display a list of archive links for each month that has custom posts.<\/p>\n\n<ul>\n<li><strong>Title<\/strong> - description that appears over the list of archive links.<\/li>\n<li><strong>Post Type<\/strong> - if selected, filter by a custom post type. (e.g. post).<\/li>\n<li><strong>Archive Type<\/strong><\/li>\n<li><strong>Display as dropdown<\/strong> - if checked, this box causes the archives to be displayed in a drop-down box.<\/li>\n<li><strong>Show post counts<\/strong> - if checked, this box causes a count of the number of posts for each archive period.<\/li>\n<li><strong>Order<\/strong><\/li>\n<\/ul>\n\n<h4>Categories (Custom Post Type)<\/h4>\n\n<p>display a list of categories that has custom posts.<\/p>\n\n<ul>\n<li><strong>Title<\/strong> - description that appears over the list of categories.<\/li>\n<li><strong>Taxonomy<\/strong> - if selected, filter a custom taxonomy (e.g. category).<\/li>\n<li><strong>Display as dropdown<\/strong> - if checked, this box causes the categories to be displayed in a dropdown box.<\/li>\n<li><strong>Show post counts<\/strong> - if checked, this box causes the count of the number of posts to display with each category.<\/li>\n<li><strong>Show hierarchy<\/strong> - if checked, shows parent\/child relationships in an indented manner.<\/li>\n<\/ul>\n\n<h4>Calendar (Custom Post Type)<\/h4>\n\n<p>display a calendar of the current month.<\/p>\n\n<ul>\n<li><strong>Title<\/strong> - description that appears over the calendar.<\/li>\n<li><strong>Post Type<\/strong> - if selected, filter by a custom post type. (e.g. post).<\/li>\n<\/ul>\n\n<h4>Recent Comments (Custom Post Type)<\/h4>\n\n<p>display a list of the most recent comments.<\/p>\n\n<ul>\n<li><strong>Title<\/strong> - description that appears over the list of recent comments.<\/li>\n<li><strong>Post Type<\/strong> - if selected, filter by a custom post type. (e.g. post).<\/li>\n<li><strong>Number of comments to show (at most 15)<\/strong> - enter the number of comments to be displayed.<\/li>\n<\/ul>\n\n<h4>Tag Cloud (Custom Post Type)<\/h4>\n\n<p>display a list of the top 45 that has used in a tag cloud.<\/p>\n\n<ul>\n<li><strong>Title<\/strong> - description that appears over the tag cloud.<\/li>\n<li><strong>Taxonomy<\/strong> - if selected, filter a custom taxonomy (e.g. post_tag).<\/li>\n<li><strong>Show tag counts<\/strong> - if checked, this box causes the count of the number of tags to display with each tag.<\/li>\n<\/ul>\n\n<h4>Search (Custom Post Type)<\/h4>\n\n<p>A search form for your site.<\/p>\n\n<ul>\n<li><strong>Title<\/strong> - description that appears over the search.<\/li>\n<li><strong>Post Type<\/strong> - if selected, filter by a custom post type. (e.g. post).<\/li>\n<\/ul>\n\n<h4>Hooks<\/h4>\n\n<p>Custom Post Type Widgets has its own hooks. See the reference for details.<\/p>\n\n<p>Reference: <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-widgets#hooks\">https:\/\/github.com\/thingsym\/custom-post-type-widgets#hooks<\/a><\/p>\n\n<h4>Support<\/h4>\n\n<p>If you have any trouble, you can use the forums or report bugs.<\/p>\n\n<ul>\n<li>Forum: <a href=\"https:\/\/wordpress.org\/support\/plugin\/custom-post-type-widgets\/\">https:\/\/wordpress.org\/support\/plugin\/custom-post-type-widgets\/<\/a><\/li>\n<li>Issues: <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-widgets\/issues\">https:\/\/github.com\/thingsym\/custom-post-type-widgets\/issues<\/a><\/li>\n<\/ul>\n\n<h4>Contribution<\/h4>\n\n<p>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.<\/p>\n\n<p>Translating a plugin takes a lot of time, effort, and patience. I really appreciate the hard work from these contributors.<\/p>\n\n<p>If you have created or updated your own language pack, you can send gettext PO and MO files to author. I can bundle it into plugin.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/github.com\/thingsym\/custom-post-type-widgets\">VCS - GitHub<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/custom-post-type-widgets\/\">Homepage - WordPress Plugin<\/a><\/li>\n<li><a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/custom-post-type-widgets\">Translate Custom Post Type Widgets into your language.<\/a><\/li>\n<\/ul>\n\n<p>You can also contribute by answering issues on the forums.<\/p>\n\n<ul>\n<li>Forum: <a href=\"https:\/\/wordpress.org\/support\/plugin\/custom-post-type-widgets\/\">https:\/\/wordpress.org\/support\/plugin\/custom-post-type-widgets\/<\/a><\/li>\n<li>Issues: <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-widgets\/issues\">https:\/\/github.com\/thingsym\/custom-post-type-widgets\/issues<\/a><\/li>\n<\/ul>\n\n<h4>Patches and Bug Fixes<\/h4>\n\n<p>Forking on Github is another good way. You can send a pull request.<\/p>\n\n<ol>\n<li>Fork <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-widgets\">Custom Post Type Widgets<\/a> from GitHub repository<\/li>\n<li>Create a feature branch: git checkout -b my-new-feature<\/li>\n<li>Commit your changes: git commit -am 'Add some feature'<\/li>\n<li>Push to the branch: git push origin my-new-feature<\/li>\n<li>Create new Pull Request<\/li>\n<\/ol>\n\n<h4>Contribute guidlines<\/h4>\n\n<p>If you would like to contribute, here are some notes and guidlines.<\/p>\n\n<ul>\n<li>All development happens on the <strong>develop<\/strong> branch, so it is always the most up-to-date<\/li>\n<li>The <strong>master<\/strong> branch only contains tagged releases<\/li>\n<li>If you are going to be submitting a pull request, please submit your pull request to the <strong>develop<\/strong> branch<\/li>\n<li>See about <a href=\"https:\/\/help.github.com\/articles\/fork-a-repo\/\">forking<\/a> and <a href=\"https:\/\/help.github.com\/articles\/using-pull-requests\/\">pull requests<\/a><\/li>\n<\/ul>\n\n<h4>Test Matrix<\/h4>\n\n<p>For operation compatibility between PHP version and WordPress version, see below <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-widgets\/actions\">Github Actions<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unzip files. Or install Custom Post Type Widgets plugin using the WordPress plugin installer. In that case, skip 2.<\/li>\n<li>Upload \"custom-post-type-widgets\" to the \"\/wp-content\/plugins\/\" directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Adds widgets to a widget area and configure settings through the 'Widgets' menu in WordPress.<\/li>\n<li>Have fun!<\/li>\n<\/ol>\n\n<p><strong>IMPORTANT<\/strong>: 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.<\/p>\n\n<p>And try the following: <a href=\"https:\/\/wordpress.org\/plugins\/custom-post-type-rewrite\/\">Custom Post Type Rewrite<\/a><\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='404%20error%20when%20clicking%20month%20link.'><h3>404 error when clicking month link.<\/h3><\/dt>\n<dd><p>You may need to edit the permalink of custom post type.<\/p>\n\n<p>By default, WordPress will not work Date-based permalinks of custom post type.<\/p>\n\n<p>For example, a month link generates a link in a format like <code>\/&lt;custom post type name&gt;\/date\/YYYY\/MM\/<\/code>, if you set <code>Numeric<\/code> in Common Settings in Permalink Settings.<\/p>\n\n<p>The month link has the following two patterns depending on the Common Settings.\nBut a link like below will not work.<\/p>\n\n<ul>\n<li><code>\/&lt;custom post type name&gt;\/YYYY\/MM\/<\/code> (Day and name, Month and name, Post name)<\/li>\n<li><code>\/&lt;custom post type name&gt;\/date\/YYYY\/MM\/<\/code> (Numeric)<\/li>\n<\/ul>\n\n<p>Recommend that you install the plugin in order to edit the permalink, if you are using a Date-based permalinks by the Widget.<\/p>\n\n<p>And try the following:<\/p>\n\n<p>Custom Post Type Rewrite\n<a href=\"https:\/\/wordpress.org\/plugins\/custom-post-type-rewrite\/\">https:\/\/wordpress.org\/plugins\/custom-post-type-rewrite\/<\/a><\/p>\n\n<p>If you installed multiple plugins that can edit permalinks, the rewrite rules or permalinks may interfere.<\/p>\n\n<p>In that case, you can disable the generation of permalinks by setting the following two constants in wp-config.php or the theme's function.php.<\/p>\n\n<ul>\n<li><code>CUSTOM_POST_TYPE_WIDGETS_DISABLE_LINKS_ARCHIVE<\/code><\/li>\n<li><p><code>CUSTOM_POST_TYPE_WIDGETS_DISABLE_LINKS_CALENDAR<\/code><\/p>\n\n<p>define( 'CUSTOM_POST_TYPE_WIDGETS_DISABLE_LINKS_ARCHIVE', true );\ndefine( 'CUSTOM_POST_TYPE_WIDGETS_DISABLE_LINKS_CALENDAR', true );<\/p><\/li>\n<\/ul><\/dd>\n<dt id='taxonomy%20select%20of%20categories%20or%20tags%20do%20not%20appear.'><h3>Taxonomy select of Categories or Tags do not appear.<\/h3><\/dt>\n<dd><p>Check the setting of the <strong>hierarchical<\/strong> argument of the register_taxonomy function.<\/p>\n\n<blockquote>\n  <p>hierarchical<br \/>\n  (boolean) (optional) Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags.<br \/>\n  Default: false<\/p>\n<\/blockquote>\n\n<p>Reference: <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/register_taxonomy\">https:\/\/codex.wordpress.org\/Function_Reference\/register_taxonomy<\/a><\/p>\n\n<p>By hierarchical option,<\/p>\n\n<p>If false, use \"Tag Cloud (Custom Post Type)\" as tags.<br \/>\nIf true, use \"Categories (Custom Post Type)\" as categories.<\/p><\/dd>\n<dt id='search%20filter%20dose%20not%20work.'><h3>Search filter dose not work.<\/h3><\/dt>\n<dd><p>Check the setting of the <strong>exclude_from_search<\/strong> argument of the register_post_type function.<\/p>\n\n<blockquote>\n  <p>'exclude_from_search'\n  (bool) Whether to exclude posts with this post type from front end search results. Default is the opposite value of $public.<\/p>\n<\/blockquote><\/dd>\n<dt id='show%20featured%20image%20as%20a%20thumbnail.'><h3>Show featured image as a thumbnail.<\/h3><\/dt>\n<dd><p>You can use the action hook <code>custom_post_type_widgets\/recent_posts\/widget\/prepend<\/code> to adding thumbnails.<\/p>\n\n<p>Code sample is as follows:<\/p>\n\n<pre><code>function cptw_hooks_setup() {\n  add_action( 'custom_post_type_widgets\/recent_posts\/widget\/prepend', 'cptw_recent_posts_prepend', 10, 4 );\n}\nadd_action( 'after_setup_theme', 'cptw_hooks_setup' );\n\nfunction cptw_recent_posts_prepend( $widget_id, $posttype, $instance, $recent_post ) {\n  if ( has_post_thumbnail( $recent_post ) ) {\n    echo get_the_post_thumbnail( $recent_post );\n  }\n}\n<\/code><\/pre>\n\n<p>Insert the above code into functions.php in your theme.<\/p><\/dd>\n<dt id='does%20custom%20post%20type%20widgets%20have%20hooks%20%3F'><h3>Does Custom Post Type Widgets have hooks ?<\/h3><\/dt>\n<dd><p>Custom Post Type Widgets has its own hooks.<\/p>\n\n<p>Filter hooks<\/p>\n\n<ul>\n<li>custom_post_type_widgets\/archive\/widget_archives_dropdown_args<\/li>\n<li>custom_post_type_widgets\/archive\/widget_archives_args<\/li>\n<li>custom_post_type_widgets\/categories\/widget_categories_dropdown_args<\/li>\n<li>custom_post_type_widgets\/categories\/widget_categories_args<\/li>\n<li>custom_post_type_widgets\/recent_comments\/widget_comments_args<\/li>\n<li>custom_post_type_widgets\/recent_posts\/widget_posts_args<\/li>\n<li>custom_post_type_widgets\/search\/filter_post_type<\/li>\n<li>custom_post_type_widgets\/tag_cloud\/widget_tag_cloud_args<\/li>\n<li>custom_post_type_widgets\/calendar\/get_custom_post_type_calendar<\/li>\n<li>custom_post_type_widgets\/archive\/get_year_link_custom_post_type<\/li>\n<li>custom_post_type_widgets\/archive\/get_day_link_custom_post_type<\/li>\n<li>custom_post_type_widgets\/archive\/get_month_link_custom_post_type<\/li>\n<li>custom_post_type_widgets\/archive\/trim_post_type<\/li>\n<li>custom_post_type_widgets\/calendar\/get_day_link_custom_post_type<\/li>\n<li>custom_post_type_widgets\/calendar\/get_month_link_custom_post_type<\/li>\n<\/ul>\n\n<p>Action hooks<\/p>\n\n<ul>\n<li>custom_post_type_widgets\/recent_posts\/widget\/before<\/li>\n<li>custom_post_type_widgets\/recent_posts\/widget\/prepend<\/li>\n<li>custom_post_type_widgets\/recent_posts\/widget\/append<\/li>\n<li>custom_post_type_widgets\/recent_posts\/widget\/after<\/li>\n<\/ul>\n\n<p>Reference: <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-widgets#hooks\">https:\/\/github.com\/thingsym\/custom-post-type-widgets#hooks<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5.2<\/h4>\n\n<ul>\n<li>update japanese translation<\/li>\n<li>tested up to 6.2.0<\/li>\n<li>fix composer scripts<\/li>\n<li>update github actions<\/li>\n<li>fix load_textdomain method for testability<\/li>\n<li>add msgmerge to composer scripts<\/li>\n<li>add support section and enhance contribution section to README<\/li>\n<li>fix license<\/li>\n<li>update screenshots<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>edit README<\/li>\n<li>fix the priority of the rewrite rule of register_post_type()<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>tested up to 6.0.0<\/li>\n<li>fix wp-plugin-unit-test.yml<\/li>\n<li>update japanese translation<\/li>\n<li>update pot<\/li>\n<li>fix test case<\/li>\n<li>add format argument<\/li>\n<li>supports translation<\/li>\n<li>add ASC\/DESC order option for archive widget<\/li>\n<li>add constants CUSTOM_POST_TYPE_WIDGETS_DISABLE_LINKS_ARCHIVE and CUSTOM_POST_TYPE_WIDGETS_DISABLE_LINKS_CALENDAR<\/li>\n<li>fix rewrite slug for has_archive setting<\/li>\n<li>rename variable name<\/li>\n<\/ul>\n\n<h4>1.4.2<\/h4>\n\n<ul>\n<li>add composer script<\/li>\n<li>remove makepot:php composer script<\/li>\n<li>change action hook<\/li>\n<li>rename method name<\/li>\n<li>fix hook to load_textdomain for translate on Widgets Screen<\/li>\n<li>replace assert from assertEquals to assertSame<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>add test case<\/li>\n<li>fix README<\/li>\n<li>update wp-plugin-unit-test.yml<\/li>\n<li>bump up yoast\/phpunit-polyfills version<\/li>\n<li>change os to ubuntu-20.04 for ci<\/li>\n<li>add Upgrade Notice<\/li>\n<li>change requires at least to wordpress 4.9<\/li>\n<li>change requires to PHP 5.6<\/li>\n<li>fix: fix pot and translation<\/li>\n<li>fix label<\/li>\n<li>fix test unit configuration and lint ruleset<\/li>\n<li>update composer.json<\/li>\n<li>add timeout-minutes to workflows<\/li>\n<li>add phpunit-polyfills<\/li>\n<li>update install-wp-tests.sh<\/li>\n<li>fix .editorconfig<\/li>\n<li>tested up to 5.8.0<\/li>\n<li>fix github workflows<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>update screenshot<\/li>\n<li>tested up to 5.6.2<\/li>\n<li>update japanese translation<\/li>\n<li>update pot<\/li>\n<li>add init method, change method name<\/li>\n<li>separate class into separate a file<\/li>\n<li>add sponsor link<\/li>\n<li>add dropdown label option with categories widget<\/li>\n<li>add archive type option with archive widget<\/li>\n<li>add donate link<\/li>\n<li>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<\/li>\n<li>add FUNDING.yml<\/li>\n<li>add GitHub actions for CI\/CD, remove .travis.yml<\/li>\n<li>imporve code with phpcs, phpmd and phpstan<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>edit README<\/li>\n<li>update japanese translation<\/li>\n<li>update pot<\/li>\n<li>fix test case<\/li>\n<li>imporve code with phpcs, phpmd and phpstan<\/li>\n<li>update testunit configuration<\/li>\n<li>restructure code to perform a single task<\/li>\n<li>add denying direct file access<\/li>\n<li>divide as load_textdomain function<\/li>\n<li>fix composer.json<\/li>\n<li>change calendar widget markup<\/li>\n<li>add hook custom_post_type_widgets\/calendar\/get_custom_post_type_calendar<\/li>\n<li>fix get_custom_post_type_calendar method<\/li>\n<li>change to call method directly instead of via hook in the calendar widget<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>replace from id attribute to calss attribute in the calendar<\/li>\n<li>add any matching value as all types<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>change Requires at least version 4.0<\/li>\n<li>[Calendar widget] cache the calendar<\/li>\n<li>improve filter hooks and action hooks<\/li>\n<li>fix test case<\/li>\n<li>refactoring<\/li>\n<li>add customize_selective_refresh<\/li>\n<li>fix phpcs.ruleset.xml<\/li>\n<li>replace from strip_tags to wp_strip_all_tags<\/li>\n<li>replace from _e to esc_html_e<\/li>\n<li>add PHPDoc<\/li>\n<li>fix header<\/li>\n<li>add reset-wp-tests.sh, uninstall-wp-tests.sh<\/li>\n<li>fix indent and reformat with phpcs and phpcbf<\/li>\n<li>add composer.json for test<\/li>\n<li>add static code analysis config<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>change Requires at least version 3.7<\/li>\n<li>fix add_action<\/li>\n<li>add sanitize<\/li>\n<li>add tests<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>[Categories widget] change value_field of the cat_args from name to slug<\/li>\n<li>limit the scope of the filter hook<\/li>\n<li>[Search widget] rename the name of the filter hook<\/li>\n<li>fix the initial value of the posttype, the archive_name and the taxonomy<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>[Search widget] add apply_filters 'WP_Custom_Post_Type_Widgets_Search_filter_post_type'<\/li>\n<li>improve function 'query_search_filter_only_post_type' [Search widget]<\/li>\n<li>[Search widget] change to add_action 'pre_get_posts' run only on the front-end page<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>[Comments widgets, Search widgets] add 'All' to posttype option<\/li>\n<li>refactoring<\/li>\n<li>add Custom Post Type Search widget<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>fix cache key of Custom Post Type Calendar widget<\/li>\n<li>support for custom post type slugs<\/li>\n<li>add german translation<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>add italian translation<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>fix $cat_args['show_option_none']<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>fix the 'name' param of get_terms()<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Custom Post Type Widgets plugin adds default custom post type widgets.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/34220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=34220"}],"author":[{"embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thingsym"}],"wp:attachment":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=34220"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=34220"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=34220"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=34220"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=34220"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=34220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}