[wordpress插件] Disable Attachment Pages禁用附件页面

wordpress 插件 文章 2020-04-17 16:10 461 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This plugin redirects attachment pages to the post, where they are placed (via 301).

此插件将附件页面重定向到帖子所在的位置(通过301)。

If there is no parent page, it redirects back to the WordPress home URL (via 302).

如果没有父页面,它将重定向回WordPress主页URL(通过302)。

Further, when editing a post, the option to link images to their attachment page is hidden via CSS (except it is selected by default).

此外,在编辑帖子时,通过CSS隐藏了将图像链接到其附件页面的选项(默认情况下未选中)。

安装步骤

    1. Upload disable-attachment-pages.zip to the /wp-content/plugins/ directory.
    2. disable-attachment-pages.zip 上传到 / wp-content / plugins / 目录。

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

    5. You’re done!

    6. 您完成了!

      Try following an attachment link, the browser should redirect back to the post, where this link is placed.

    7. 尝试点击附件链接,浏览器应重定向回该链接所在的帖子。

下载地址
https://downloads.wordpress.org/plugin/disable-attachment-pages.1.1.zip
-EOF-

AI助手支持GPT4.0