[wordpress插件] AOC Multiple Post ImagesAOC多个帖子图像

wordpress 插件 文章 2020-02-19 10:40 486 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin aims at providing users the capability to upload multiple thumbnails/featured images to a post.

此插件旨在为用户提供将多个缩略图/特征图像上传到帖子的功能。

It uses wp.media js object to open a image uploader frame and choose/upload images.

它使用wp.media js对象打开图像上传器框架并选择/上传图像。

Once the images are selected, it will save the id of uploaded media object in a custom field.

选择图像后,它将上传的媒体对象的ID保存在自定义字段中。

Getting uploaded images

获取上传的图片

You can use the function aoc_get_images($post_id) to retrieve an array of urls of all the images that have been uploaded to a post.

您可以使用函数aoc_get_images($ post_id)检索已上传到帖子的所有图像的URL数组。

This function accepts the id of post (for which the images are to be fetched) as a parameter.

此函数接受post的ID(要为其获取图像的ID)作为参数。

安装步骤

    1. Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件夹上传到 / wp-content / plugins / 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

下载地址
https://downloads.wordpress.org/plugin/aoc-multiple-post-images.zip
-EOF-

AI助手支持GPT4.0