內容簡介
「Add image to Post 外掛」是一個 WordPress 外掛,允許您從外部連結插入圖片到您的文章中。該外掛從外部網站掃描以找到最相關的圖片,並將其添加為帖子的特色圖像。該外掛僅在您的文章頁面(單頁)載入時才觸發,此後,圖像成為文章的特色圖像,並創建一個名為「gc_thumb」的自定義字段,並為您提供新圖像在您的伺服器上的完整 URL。更多信息請參閱 http://www.appsmobiledev.com/wordpress-add-image-to-post-plugin
適用於 Autoblog WordPress 博客,如 Autobloggeg 或 WPRobot。
在撰寫文章時添加圖片
從外部鏈接插入圖片到您的文章中(非常適用於 Autoblog 網站)
掃描您的文章內容,查找外部鏈接,從外部網站中取出最相關的圖片並將其添加到您的上傳資料夾並顯示在文章或循環中
適用於 Autoblog WordPress 博客,如 Autobloggeg 或 WPRobot。
使用 WordPress 博客中已設置的任何自定義字段從外部網站查找圖片。
使用說明
如何在循環中添加圖片?
您的佈景主題可能已經設置為在循環中顯示特色圖像,例如主頁,搜索和標籤,並在安裝和設置後正常運作。
如何在循環中添加特色圖像(索引頁,搜索頁,標籤搜索頁等)
if(has_post_thumbnail()) {
the_post_thumbnail();
}
設置尺寸(通常,您可以在 WordPress 設置 => 媒體 => 縮略圖大小中設置)
‘alignleft’));
} ?>
使用 Get_post_meta
「Add image to Post 外掛」會自動創建一個新的帖子元數據,名為:gc_thumb
if(get_post_meta($post_id, “gc_thumb”, true))
{
$gc_img_link = get_post_meta($post_id , “gc_thumb”, true);
echo ”;
}
外掛標籤
開發者團隊
原文外掛簡介
The Add image to Post plugin is a WordPress plugin that allows you to insert a image to your post from external link. 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. More infos at http://www.appsmobiledev.com/wordpress-add-image-to-post-plugin
Work well for Autoblog WordPress blog like Autobloggeg or WPRobot.
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.
Use any custom field already set in your WordPress blog to find image from external website.
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()) {
the_post_thumbnail();
}
Give size (usually, you can set thumnbail size in your WordPress Settings => Media => Thumbnail size)
‘alignleft’));
} ?>
Using Get_post_meta
The Add image to Post plugin automatically create a new Post Meta named: gc_thumb
if(get_post_meta($post_id, “gc_thumb”, true))
{
$gc_img_link = get_post_meta($post_id , “gc_thumb”, true);
echo ”;
}
