[wordpress插件] COP PDF Attachment MenuCOP PDF附件菜单

wordpress 插件 文章 2020-04-02 17:20 473 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Adds a shortcode [pdfmenu] and a widget that defaults to displaying an unordered list of all pdf’s attached to the current page or post.

添加一个简码[pdfmenu]和一个小部件,默认情况下,该小部件将显示当前页面或帖子所附的所有pdf文件的无序列表。

There are options for both altering the query to return a different set of attachments and for formatting the output.

有一些选项可用于更改查询以返回不同的附件集,以及用于格式化输出。

This plugin should always default to:

此插件应始终默认为:

        

      

    The attachments will be ordered by date in the ascending order by default.

    默认情况下,附件将按日期升序排列。

    Shortcode Options include:

    Shortcode选项包括:

      • Change list types ol, li, div (nested divs).
      • 更改列表类型ol,li,div(嵌套div)。

          • [pdfmenu list_type=”ul”]
          • [pdfmenu list_type =” ul”]

          • [pdfmenu list_type=”ol”]
          • [pdfmenu list_type =” ol”]

          • [pdfmenu list_type=”div”]
          • [pdfmenu list_type =” div”]

        • Set a different class on the container.
        • 在容器上设置其他类。

            • [pdfmenu class=”differentclass”]
            • [pdfmenu class =“ differentclass”]

          • Set a different target.
          • 设置其他目标。

              • [pdfmenu target=”differenttarget”]
              • [pdfmenu target =“不同的目标”]

            • Get a list of pdfs from a different parent.
            • 获取其他父母的pdf列表。

                • [pdfmenu post_parent=”1″]
                • [pdfmenu post_parent =” 1”]

              • Change the number of pdfs to return.

              • 更改要返回的pdf数量。

                (currently no paging).

              • (目前没有分页)。

                  • [pdfmenu numberposts=”-1″] (returns all attachments)
                  • [pdfmenu numberposts =”-1”](返回所有附件)

                • Change the post_mime_type to query for a different type or multiple types.
                • 更改post_mime_type以查询其他类型或多种类型。

                    • [pdfmenu post_mime_type=”application/zip”]
                    • [pdfmenu post_mime_type =” application / zip”]

                  • Force download of the attachments
                  • 强制下载附件

                      • [pdfmenu dowload=”all”] (force download of all listed attachments)
                      • [pdfmenu dowload =” all”](强制下载所有列出的附件)

                      • [pdfmenu dowload=”application/pdf”] (force download of a single mime type)
                      • [pdfmenu dowload =” application / pdf”](强制下载一种哑剧类型)

                    Widget Options include all of the shortcode options and add some selectors for altering the query and output.

                    窗口小部件选项包括所有的简码选项,并添加了一些用于更改查询和输出的选择器。

安装步骤

Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.

解压缩该zip文件,然后将其内容拖放到WordPress安装的wp-content / plugins /目录中,然后激活“来自插件的插件”页面。

下载地址
https://downloads.wordpress.org/plugin/cop-pdf-attachment-menu.zip
-EOF-

AI助手支持GPT4.0