- Fixed return type for label filter.
- Fixed bugs when trying to access column data on columns that are not arrays (e.g. when column is set to
false
). - Improved default compatibility with custom permalink structure when using the
page_for_archive
option.
- Fixed a bug with orderby query parameters that are arrays.
- Fixed error notice.
- Added a new
column_order
argument for theadmin_columns
option. - Added a new
image
type for theadmin_columns
option. - Added a new
custom
type for theadmin_columns
option. - Fixed a bug when updating the label for a custom post type didn’t work properly.
- Fixed a bug when search for meta for title.
- Fixed a bug when wrong translation loaded in admin.
- Fixed a bug when searching for post titles didn’t work in combination with meta value searches.
- Fixed some code style issues (thanks, @szepeviktor).
- Fixed a PHP notice.
- Fixed
sortable
parameter for theadmin_columns
option. Sorting didn’t work properly before. It should work now. - Changed default for
sortable
parameter for theadmin_columns
option fromtrue
tofalse
. - Added new
orderby
parameter for theadmin_columns
option that will be used in combination with thesortable
parameter. - Fixed a bug when the
query
option was interfering with sorting queries in post list tables.
- Added Dutch translations.
- Added
searchable
option as an option for admin columns to make meta columns searchable. - Changed default column type for admin columns from
default
tometa
to be more explicit.
This release improves compatibility with multisite environments, especially when working with MultilingualPress.
- Fixed bug when page archives didn’t work in multilingual multisite environments.
- Fixed bug when proper archive link couldn’t be selected in multisite environment.
- Fixed bug when no page was selected for a custom post type archive in
Post_Type_Page_Option
.
- Added filter to update the title for the post type archive when using
post_type_archive_title()
.
- Added
Post_Type_Page_Option
class, which registers an option to select the page to act as the custom post type archive in the Customizer for you. - Added
Post_Type_Page_State
class, which adds a post state label to the the pages overview in the admin to recognize pages that act as custom post type archives quicker.
Read more about these functionalities in the page_for_archive
section in the README.
- Added edit page link to admin bar for archive pages.
- Fixed CSS classes added to parent and ancestor menu items.
- Added new
Types\Post_Type_Page
class. This class allows you to define a page that should act as the archive for a Custom Post Type using thepage_for_archive
option. - Fixed a bug with an undefined function #2 (Thanks @roylodder).
- Added new post type labels (https://make.wordpress.org/core/2018/12/05/new-post-type-labels-in-5-0/).
- Fixed wrong label assignment.
- Updated post slug feature to not run when a post is being trashed.
- Fixed bug when a post slug couldn’t be set when a date couldn’t be parsed. When the date can’t be parsed, the post slug won’t be changed.
- Fixed bug when certain values didn’t exist yet for a post.
- Added better handling of labels by updating the messages displayed in the backend and making it possible to properly translate the labels. This will open up the repository for additional languages.
- Added new function
update()
to update the settings for existing post types and taxonomies. - Added new function
rename()
to rename existing post types and taxonomies. - Added option for post types to have separate queries with a
frontend
andbackend
argument forquery
. - Fixed when a post slug wasn’t updated on first save.
- Added new function
admin_columns()
to customize admin columns for already registered post types. - Added special
thumbnail
column key to display the featured image. - Added
sortable
option for a column to define whether it’s sortable.
- Fixed undefined index notices.
- Renamed package from «Custom Types» to just «Types».
- Renamed classes.
- Renamed registration methods.
- Added helper class to customize post slugs when posts are saved.
- Added
query
argument to define how posts are queried in the front- and backend. - Added
admin_columns
argument to define the admin columns that should be displayed.
Initial release.