Linux 软件免费装
Banner图

WP-Force Images Download

开发者
更新时间 2022年3月25日 18:50
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 5.2.1
版权: GPLv2

标签

image button free download featured image pictures post thumbnail force generate download link download images shortcode button browser force force download shortcode force download templatetag force download pictures download button rename images on download on the fly rename force images download generate download button

下载

1.0.0 1.1.0 1.1.1 1.2 1.2.1 1.3 1.3.1 1.4 1.5 1.6 1.7

详情介绍:

This is a simple plugin that allows you to force the download of images or pictures such as jpeg,png etc. This plugin is very useful to those who want to download post attachment or featured image. Just put the template tag in single.php and this plugin automatically generates the download link for every post. Note: The post must have featured image because this plugin generates download link of attached featured image of every post , if the post(s) have not featured image the download button would not appear. While using shortcode you can set your own link NEW FEATURES
  1. Now custom CSS class can be added in shortcode for each button. Example
  2. [wpfid class="myclass"] This class can be used to give customized look for each button. To add your custom CSS code Goto settings >> Wp-Force Images Download page and add your CSS code here and save settings.
  3. Renaming Image file on download when using template tag Now you can rename iamge file when it is downloaded using template tag. Note there are three parameters for template tag
  4. First one to change TEXT that would appear on download button. By Default its Download
  5. Second parameter to change color scheme
  6. Third parameter is to change name of image on download. How to use it: See example below
  7. Example(s):
  8. <?php wp_fid("Some Text","green","NEW FILE NANME");?>
  9. <?php wp_fid("Some Text","green",get_the_title());?>
  10. <?php wp_fid("Some Text","green",current_time('timestamp'));?>
  11. <?php wp_fid("Some Text","green",get_the_title().current_time('timestamp'));?> Need Any Help? Post your Question
Now you can rename images when downloaded.There two ways to rename. 1. Using Shortcode 2. Bulk Rename Images Goto settings >> Wp-Force Images Download page and set your desired combination to rename images. e.g. %filename%-%rand% = Now you can set your own custom download link in shortcode. = e.g. [wpfid link="http://link-to/your/image.jpg"] HOW TO USE THIS PLUGIN: 1). By Using Template Tag You have to put the template tag in your single.php file of your theme, where you want to appear the download button. There are three ways to use template tag
  1. <?php wp_fid();?> This is simple form with default settings.
  2. <?php wp_fid("Some Text");?> This will allow you to set custom text to appear on download button. Default is Download
  3. <?php wp_fid("Some Text","green");?> This will allow you to set custom text along with custom color (e.g. pink,green,yellow,purple,#ffcc66,#cccccc,#f80, rgb(255,56,35) etc). Default color is grey
  4. <?php wp_fid("Some Text","green","NEW FILE NANME");?> This will allow you to set custom text,custom color, new name of image when downloaded.
  5. More Examples:
  6. <?php wp_fid("Some Text","green","NEW FILE NANME");?>
  7. <?php wp_fid("Some Text","green",get_the_title());?>
  8. <?php wp_fid("Some Text","green",current_time('timestamp'));?>
  9. <?php wp_fid("Some Text","green",get_the_title().current_time('timestamp'));?>
  10. Second function allows you to set custom text for download button.e.g. <?php wp_fid("Image Download");?>
  11. The default title text is Download and default color is grey.
  12. Note:If Featured Image is not set for post the download button would not appear on page.
2). By Using Shortcode You have to put shortcode in the post content or page, while writing post. There are five ways to use SHORTCODE.
  1. [wpfid] This is simple form with default settings.
  2. [wpfid title="some text"] This will allow you to set custom text to appear on download button. Default is "Download"
  3. [wpfid title="some text" color="green"] This will allow you to set custom text along with custom color. Default color is "grey"
  4. [wpfid title="some text" color="green" link="http://link-to/your/image.jpg"] This will allow you to set custom text, custom color and custom download link. By Default download button will download Featured image of the Post or Page where you have added shortcode , if you have set featured image.
  5. [wpfid title="some text" color="green" link="http://link-to/your/image.jpg" class="my_custom_class"] This will allow you to set custom text, custom color, custom download link and custom CSS class. This class can be used to give customized look for each button. To add your custom CSS code Goto settings >> Wp-Force Images Download page and add your custom CSS code here and save settings.

安装:

Upload the WP-Force Images Download plugin to your blog, Activate it, and you're done! You have to put this code in theme file. <?php wp_fid();?> or use shortcode. [wpfid] == Frequently Asked Questions == No questions yet == FAQ == You can Set Custom Color in three ways:

更新日志:

1.7 1.6 1.5 1.4 1.3.1 1.3 1.2.1 1.2 1.1.1 1.1.0 1.0.0