You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,37 @@ Automatically set and unset the term when the time is up.
14
14
15
15
## Description
16
16
17
-
Automatically set and unset the term when the time is up.
17
+
Schedule Terms lets you reserve a date and time for a category, tag, or any other taxonomy term to be attached to or detached from a post, instead of editing the post manually when the time comes.
18
+
19
+
It's useful for things like:
20
+
21
+
* Featuring a post in a "Sale" or "Campaign" category only during a specific period, and removing it automatically afterwards.
22
+
* Adding a "New" tag to a post for a limited time after publishing.
23
+
* Hiding a post from a "Featured" listing taxonomy once a promotion ends.
18
24
19
-
Check the "use schedule" checkbox in the category or tag management screen. You can set a time for each post to be added or removed from the category or tag.
25
+
Once scheduling is enabled for a taxonomy, a "Schedule Terms" panel appears in the post editor for every term in that taxonomy, with separate "Attach" and "Detach" date/time fields. WordPress' own cron system checks the schedule and updates the post's terms automatically when the time arrives, so there's nothing else to do once a schedule is set.
20
26
21
27
### Usage
22
28
23
-
1. Go to category,tag or custom taxonomy management screen.
24
-
2. Check the "Use scheduling" checkbox.
25
-
3. Goto edit post screen then set datetime in "Schedule Terms" panel.
29
+
1. Go to the category, tag, or custom taxonomy management screen.
30
+
2. Check the "Enable scheduling" checkbox when adding or editing a term (or via Quick Edit) to turn scheduling on for that term.
31
+
3. Open a post in the block editor and find the "Schedule Terms" panel in the document sidebar.
32
+
4. Set the "Attach" date/time to have the term automatically added to the post at that time, and/or the "Detach" date/time to have it automatically removed.
33
+
5. Save or update the post. The term will be attached/detached automatically once the scheduled time passes.
34
+
35
+
### FAQ
36
+
37
+
**Does the term get attached/detached even if I don't edit the post again?**
38
+
39
+
Yes. Scheduling is handled by WordPress cron, so the post doesn't need to be opened or saved again after the schedule is set.
40
+
41
+
**What happens if I leave both the "Attach" and "Detach" fields empty?**
42
+
43
+
Nothing is scheduled for that term on that post; the term is only added or removed when you do so manually, as usual.
44
+
45
+
**Can I use this with a custom taxonomy?**
46
+
47
+
Yes, scheduling can be enabled for any taxonomy that is shown in the admin UI (`show_ui` is true), not just categories and tags.
0 commit comments