[wordpress插件] Cron Unsticky PostsCron不粘帖

wordpress 插件 文章 2020-04-05 06:10 479 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Overview Of The Plugin

插件概述

The Cron Unsticky Posts Plugin is very simple to use.

Cron不粘帖插件非常易于使用。

It is on whenever this plugin is active so you should disable it if

只要此插件处于活动状态,它就会打开,因此如果

you no longer want old posts to be unstickied.

您不再希望不再张贴旧帖子。

This plugin is the most for people who sticky a lot of posts but dont

此插件最适合那些发了很多帖但又不喜欢的人

want to have to go back a few days later and unsticky them one by one

想要几天后回去并一一解开它们

just so that they dont fill up their home page.

只是为了避免他们填满首页。

If that sounds like you then this is the plugin for you!

如果听起来像您,那么这就是您的插件!

Features

功能

* Unsticky posts automatically based on when they were posted

  *根据发布时间自动发布不粘帖

* Set a global Unsticky Time (default: 3 days).

*设置全局不粘时间(默认值:3天)。

After a posts is older than that Unsticky Time it will be unstickied automatically by this plugin

帖子的发布时间超过该“不粘时间”后,此插件将自动将其取消粘

* Set Unsticky Time on a per-post basis to allow certain posts more/less time on the front page

*在每个帖子的基础上设置不粘时间,以使某些帖子在首页上有更多/更少的时间

* Uses WPs Cron, no need to setup complex cron jobs.

*使用WP Cron,无需设置复杂的Cron作业。

Great if you dont even have access to Cron from your host!

太棒了,如果您甚至无法从您的主机访问Cron!

* Turn it on and forget about it.

*打开它,然后忘记它。

It will keep on running till you disable the plugin.

在禁用插件之前,它将一直运行。

* Its free!

* 免费!

Usage (in a nutshell)

用法(简而言之)

Set All Posts to Unsticky After 5 days
 

5天后将所有帖子设置为不粘帖
 

– Set “Unsticky Time” to 5 days in Settings->Unsticky Post

–在“设置”->“不粘帖” 中将“不粘时间”设置为5天

Set An Individual Post To Unsticky After 7 days
 

在7天后将单个帖子设置为不粘帖
 

– Add custom field “unstick_in” w/ value “7” to that post

–在该帖子中添加带有值“ 7”的自定义字段“ unstick_in”

See an example of usage in the “Usage” section

在“用法”部分中查看用法示例

Please check out my website for more info about this plugin and others:

请访问我的网站以获取有关此插件和其他插件的更多信息:

Take-Out-Tactics

外带战术

Usage

用法

Basic Usage

基本用法

Set All Posts to Unsticky After 5 days
 

5天后将所有帖子设置为不粘帖
 

– Set “Unsticky Time” to 5 days in Settings->Unsticky Post

–在“设置”->“不粘帖” 中将“不粘时间”设置为5天

Set An Individual Post To Unsticky After 7 days
 

在7天后将单个帖子设置为不粘帖
 

– Add custom field “unstick_in” w/ value “7” to that post

–在该帖子中添加带有值“ 7”的自定义字段“ unstick_in”

Example of Usage

用法示例

The Scenario

场景

Today you want to post three different things:

今天您想发布三种不同的内容:

* “Staying Alive”

*“保持活力”

* “Short”

*“短”

* “Kill Me Quickly”

*“快速杀死我”

For both “Short” and “Kill Me Quickly”, you don’t want them to be around for

对于“简短”和“快速杀死我”,您都不希望他们出现在

too long, only 2 days before they are unstickied.

太长了,只有两天才能脱粘。

However, “Staying Alive”

但是,“保持活力”

is a really great post.

是非常好的帖子。

You want it to be around for 5 days before it is unstickied.

您希望它在不粘手的情况下保持5天。

What to do:

怎么做:

First, Set the “Unsticky Time” setting (above) to 2 days

首先,将“不粘时间”设置(上述)设置为2天

Second, give post “Staying Alive” a custom field called “unstick_in” with

其次,使用
在帖子“ Staying Alive”中自定义字段“ unstick_in”

a value of “5”.

值为“ 5”。

So what happens?

那会怎样?

Here’s the breakdown:

详细信息如下:

On day 1: You post “Staying Alive”, “Short”, and “Kill Me Quickly”

在第1天:您发布了“保持活跃”,“简短”和“快速杀死我”

On day 2: Nothing is unstickied

第2天:没有什么不粘的

On day 3: Both “Short” and “Kill Me Quickly” are unstickied

第3天:“简短”和“快速杀死我”都不粘手

On day 4-6: Nothing is unstickied

在第4-6天:没有什么不粘的

On day 7: “Staying Alive” is finally unstickied

第7天:“保持活力”终于消失了

The “Monkey Wrench”:

“猴子扳手”:

“What if I posted something on day 3 of the above scenario?”

“如果我在上述情况的第3天发布了内容怎么办?”

– Because you set your “Unsticky Time” to 2 days it will be unstickied

–因为您将“不粘时间”设置为2天,所以不粘

on day 5 (2 days after it was posted)

在发布的第5天(发布后2天)

安装步骤

Installation and running of this plugin is easy!

此插件的安装和运行非常简单!

Just follow these steps and you can practicly forget about it after that.

只需按照以下步骤进行操作,之后您就可以实际将其忘记。

    1. Upload to your plugins folder, usually wp-content/plugins/ and unzip the file, it will create a wp-content/plugins/cron-unsticky-posts/ directory.
    2. 上传到您的plugins文件夹(通常为wp-content / plugins /)并解压缩该文件,它将创建一个wp-content / plugins / cron-unsticky-posts /目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Go to “Settings” administration menu, select “Unsticky Posts”.

    6. 转到“设置”管理菜单,选择“不粘帖”。

      The plugin is already setup to run the cron jobs needed.

    7. 该插件已设置为运行所需的cron作业。

    8. (optional) Change the “Unsticky Time” from 3 days to whatever you choose and then Click “Update Settings”.
    9. (可选)将“不粘时间”从3天更改为您选择的任何时间,然后单击“更新设置”。

    You’re all set!

    一切就绪!

    The plugin will unsticky any ‘old’ post it finds every night at midnight.

    该插件将使您每天晚上午夜发现的任何“旧”帖子都不会被粘贴。

下载地址
https://downloads.wordpress.org/plugin/cron-unsticky-posts.zip
-EOF-

AI助手支持GPT4.0