WP Random Post Thumbnails
开发者 |
bdeleasa
|
更新时间 |
2024年12月15日 01:18 |
捐献地址: |
去捐款 |
PHP版本: |
3.5 及以上 |
WordPress版本: |
6.7.1 |
版权: |
GPL v3 |
版权网址: |
版权信息
|
详情介绍:
This plugin allows you to upload a set of images via a settings page to be shown for posts without images. The images will be chosen at random on page load for any posts without a featured image (meaning each time the page is reloaded another random image will be chosen). Useful if your theme shows thumbnails for the posts, and you don't want any posts without thumbnails.
UPDATE: Now you can select images specifically for certain post types as well as taxonomy terms.
安装:
- Upload the
wp-random-thumbnails
folder to the /wp-content/plugins/
directory.
- 通过 WordPress 的的“Plugins”菜单激活插件
- Configure the plugin by going to Settings > Random Thumbnails.
- That's it! :)
更新日志:
2.6.0
- Checked compatability with Wordpress 6.7.
- Removing a custom filter which was designed to add in a
post_thumbnail_id
filter. Wordpress core now has the post_thumbnail_id
filter, so our custom filter is no longer needed.
- Added support for a class added to the images (when they are a random image). Use the
wprpt_random_post_image_class
filter to change the class name if needed.
2.5.0
- Updating CMB2 to the latest version to fix some PHP7 issues.
2.4.0
- Adding a new setting allowing users to exclude terms from having their posts utilize random thumbnails
2.3.0
- Changing the doing_ajax constant to the new Wordpress function.
- Fixing a php foreach loop warning in template-tags.php
2.2.2
- Making sure to add the front end filters when performing Ajax requests.
2.2.1
- Fixing a minor PHP notice.
2.2.0
- Updating CMB2 to the latest version.
- Fixing an issue in the newer CMB2 versions where the metabox tabs were being added as top level menu pages.
- Outputting CSS on our custom admin page to override some CMB2 styles in the metabox tabs.
- Updating the plugin description in an effort to make it clearer as to what exactly the plugin does.
- Verifying that the plugin works in Wordpress 4.8.2.
2.1.6
- Verifying that the plugin works in Wordpress 4.8.1.
2.1.5
- Fixing an issue with the version number not being updated.
2.1.4
- Fixing a PHP error on activation in PHP 7.
2.1.3
- Fixing a minor PHP warning with WP_DEBUG on.
2.1.2
- Testing to make sure the plugin works in Wordpress 4.7.
2.1.1
- Fixing a minor PHP notice with WP_DEBUG on.
2.1.0
- Fixing an issue with terms in other languages not saving properly in the options page.
2.0.8
- Fixing another minor PHP warning.
2.0.7
- Fixing minor PHP warning when no images are selected.
2.0.6
- Checking whether the term is set before comparing it's value (fixes a PHP notice).
2.0.5
- Fixing a minor PHP warning.
2.0.4
- Fixing a minor PHP warning.
2.0.3
- Adding a 'Settings' link into the plugin action links.
2.0.2
- Fixing issue with $this not being allowed in anonymous functions on older PHP versions.
2.0.1
- Removing the old cmb folder that somehow didn't get removed during the 2.0.0 update.
2.0.0
- Adding support for specifying images for any taxonomy terms.
- Adding support for specifying images specific to post types.
- Code cleanup.
- Updating the options page to make it more organized by using tabs and metaboxes.
1.3.3.1
- Updating some comments and code spacing. No functionality changes.
1.3.3
- Updating the tested up to version.
- Adding a donate link in case anyone would like to be so kind as to donate. :)
1.3.1
- Updating some comments and spacing. No actual functionality changes.
1.3.0
- Fixing PHP warnings that occurred when installing the plugin and not configuring any settings.
- Moving the CMB script inclusion to the main plugin file.
1.2.1
- Fixing an issue when a user doesn't upload any images through the settings page.
1.2.0
- Fixing a fatal error on the options page.
- Removing an unncecessary tag directory.
1.0.0
Initial release.