[wordpress插件] Add image to Post将图片添加到发布

wordpress 插件 文章 2020-01-30 10:00 571 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

The Add image to Post plugin is a WordPress plugin that allows you to insert a image to your post from external link.

“将图像添加到帖子”插件是一个WordPress插件,可让您从外部链接将图像插入帖子。

The plugin scan the external website to find the most revelant image and add it as a featured image associated to a post.

该插件扫描外部网站以查找最真实的图像,并将其添加为与帖子相关的特色图像。

The plugin only trigger when your articles page (single) is loaded once, after that, the image become the post featured image and create a custom field with the name “gc_thumb” and give you the full url of the new image location on your server

该插件仅在您的文章页面(单个)加载一次时触发,此后,该图像将成为具有特色的图像,并创建一个名称为“ gc_thumb”的自定义字段,并为您提供服务器上新图像位置的完整网址

.

More infos at http://www.appsmobiledev.com/wordpress-add-image-to-post-plugin

有关更多信息,请访问http://www.appsmobiledev.com/wordpress-add-image-to-post-plugin

Work well for Autoblog WordPress blog like Autobloggeg or WPRobot.

对于像Autobloggeg或WPRobot这样的Autoblog WordPress博客,效果很好。

    • Add image as you write your post
    • 在撰写帖子时添加图片

    • insert a image to your post from external link (Great for autoblog website)
    • 通过外部链接将图片插入您的帖子中(非常适合自动博客网站)

    • Scan your post content to find external link, take the most revelant image from the external website and add it to your upload folder and show it in your post or/and loop
    • 扫描您的帖子内容以查找外部链接,从外部网站获取最生动的图像,并将其添加到您的上传文件夹中,并在您的帖子或/和循环中显示

    • Work well for Autoblog WordPress blog like Autobloggeg or WPRobot.
    • 对于像Autobloggeg或WPRobot这样的Autoblog WordPress博客,效果很好。

    • Use any custom field already set in your WordPress blog to find image from external website.
    • 使用WordPress博客中已设置的任何自定义字段从外部网站查找图片。

    Instruction

    说明

    How to add image in loop?

    如何循环添加图片?

    Your theme may already be set to show featured image in loop, like the home page, search and tags and may work right after instalation and setting.

    您的主题可能已经设置为循环显示特色图片,例如主页,搜索和标签,并且可能在安装和设置后立即工作。

    How to add featured image in loop.

    如何循环添加特色图片。

    (index page, search page, tags search page ect.)

    (索引页,搜索页,标签搜索页等)。

    if(has_post_thumbnail()) {
        

    if(has_post_thumbnail()){
        

    the_post_thumbnail();

    the_post_thumbnail();

    }

    }

    Give size (usually, you can set thumnbail size in your WordPress Settings => Media => Thumbnail size)

    给定大小(通常,您可以在WordPress设置=>媒体=>缩略图大小中设置thumnbail大小)

    ‘alignleft’));

    “ alignleft”));

    } ?>

    }?>

    Using Get_post_meta

    使用Get_post_meta

    The Add image to Post plugin automatically create a new Post Meta named: gc_thumb

    “将图像添加到帖子”插件会自动创建一个新的帖子元,名称为:gc_thumb

    if(get_post_meta($post_id, “gc_thumb”, true))
                

    if(get_post_meta($ post_id,“ gc_thumb”,true))
                

    {
                

    {
                

    $gc_img_link = get_post_meta($post_id , “gc_thumb”, true);
                

    $ gc_img_link = get_post_meta($ post_id,“ gc_thumb”,true);
                

    echo ”;
                

    回声”;
                

    }

    }

安装步骤

    1. Upload the Add image to Post folder to your plugins (‘/wp-content/plugins/’) directory.
    2. 将“将图片添加到帖子”文件夹上载到您的插件('/ wp-content / plugins /')目录。

    3. Activate the plugin from your Plugins page.
    4. 从“插件”页面激活插件。

    5. Add image to your posts.

    6. 在您的帖子中添加图片。

      Go to the setting page to set options.

    7. 进入设置页面以设置选项。

下载地址

https://downloads.wordpress.org/plugin/add-image-to-post.0.6.zip

https://downloads.wordpress.org/plugin/add-image-to-post.0.6.zip

-EOF-

AI助手支持GPT4.0