-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathreadme.txt
116 lines (89 loc) · 4.86 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
=== Custom Post Type Date Archives ===
Contributors: keesiemeijer
Tags: post type,date,archives,events,calendar
Requires at least: 4.5
Tested up to: 5.5
Stable tag: 2.7.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Add date archives to WordPress custom post types
== Description ==
Add Date archives to custom post types right in the dashboard itself. This plugin also provides widgets and editor blocks to display archives, calendars and recent posts. This allows you to use this plugin as a super simple events calendar.
**Features**:
* Adds a date archives submenu for each custom post type
* Adds the rewrite rules needed for viewing the date archives
* Adds widgets and editor blocks for archives, calendars and recent posts
* Allows you to publish scheduled posts with future dates like normal posts
* Allows you to use specific theme templates files for cpt date archives
* Adds WP Rest API endpoints for archives, calendar and recent posts
[Plugin Documentation](https://github.com/keesiemeijer/custom-post-type-date-archives/wiki)
WordPress doesn't support date archives for custom post types out of the box. This plugin adds the rewrite rules needed to view the date archives at a [pretty permalink](https://wordpress.org/support/article/introduction-to-blogging/#pretty-permalinks).
Example permalink (url) for a custom post type `events` date archive.
`
https://example.com/events/2015/06/12
`
The calendar, archive and recent posts widget are similar to the existing WordPress widgets, but with extra (custom post type) options added.
The cpt date archives use the same theme template files as the normal WordPress date archives. Extra [template files](https://github.com/keesiemeijer/custom-post-type-date-archives/wiki/Theme-Template-Files) and [template functions](https://github.com/keesiemeijer/custom-post-type-date-archives/wiki/Functions) are available for use in the custom post type date archives.
For more information visit the [Plugin Documentation](https://github.com/keesiemeijer/custom-post-type-date-archives/wiki)
== Installation ==
Follow these instructions to install the plugin.
1. In your WordPress admin panel, go to Plugins > New Plugin, search for "custom post type date archives" and click "Install now".
2. Alternatively, download the plugin and upload the contents of custom-post-type-date-archives.zip to your plugins directory, which usually is /wp-content/plugins/.
3. Activate the plugin
4. Add date archives in the "Date Archives" sub menu of a custom post type.
== Frequently Asked Questions ==
For more information about this plugin visit the [Plugin Documentation](https://github.com/keesiemeijer/custom-post-type-date-archives/wiki)
= Where do I add the date archives? =
You add the date archives in the "Date Archives" sub menu of a custom post type.
= I don't see the sub menu to add date archives? =
If you don't see the "Date Archives" sub menu in the menu of a custom post type, the post type is probably [registered](https://codex.wordpress.org/Function_Reference/register_post_type) to not be public or not have archives. See [Custom Post Types](https://github.com/keesiemeijer/custom-post-type-date-archives/wiki/Custom-Post-Types)
== Screenshots ==
1. Date archives settings page for the custom post type Products.
2. The Calendar widget
3. The Archives widget
4. The Recent Posts widget
== Changelog ==
= 2.7.1 =
* Enhancement
* Update calendar HTML to be the same as WP 5.4
= 2.7.0 =
* Enhancement
* Add editor blocks to display archives, calendars and recent posts.
= 2.6.1 =
* Fix white screen bug for themes without archive templates. props @wpexplorer
= 2.6.0 =
* Enhancement
* Add Rest API endpoints for the archives, calendar and recent posts.
* Allow post type post in archives and calendar plugin functions.
* Add pagination (offset) for archives and recent posts.
* Restructure calendar filters (deprecating the old calendar filters).
= 2.5.1 =
* Enhancement
* Add ability to use custom archive days in the calendar by using filters.
= 2.5.0 =
* Enhancement
* Add more control over what posts are displayed in the Recent Posts widget
* New settings class to manage admin settings
* New functions for use in theme templates
= 2.4.0 =
* Enhancement
* Add recent posts widget
= 2.3.1 =
* Enhancement
* Add selective refresh for widgets in the customizer
= 2.3.0 =
* Enhancement
* Let WordPress create the rewrite rules for the date archives.
* Add more control over creating feeds for the date archives (filter)
* Flush rewrite rules after settings are updated (wp-admin)
* More PHPUnit tests (github)
= 2.2.1 =
* Enhancement
* Flush rewrite rules when date archives are removed in admin page
* Update help section with WordPress repo links
* Add screenshots
= 2.2.0 =
Initial Commit
== Upgrade Notice ==
= 2.7.1 =
This upgrade will update the calendar HTML to be the same as WordPress 5.4 and higher.