开发者 |
ankitpokhrel
cfoellmann |
---|---|
更新时间 | 2021年1月30日 01:25 |
捐献地址: | 去捐款 |
PHP版本: | 5.4 及以上 |
WordPress版本: | 5.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
A NOTE ABOUT SUPPORT: We’re here to help troubleshoot bugs, but please don't set expectations early as the support forums at WordPress.org are only checked once in a while.How it works?
add
or edit
page of posts or pages and you will notice a box for second featured image.Set featured image
, select required image from "Dynamic Featured Image - Media Selector" popup and click Set Featured Image
.Add New
to add new featured image or use Remove
link to remove the featured image box.$dynamic_featured_image->get_featured_images([$postId (optional)])
in your theme. (Click here for details)array 0 => array 'thumb' => string 'http://your_site/upload_path/yourSelectedImage.jpg' (length=50) 'full' => string 'http://your_site/upload_path/yourSelectedImage_fullSize.jpg' (length=69) 'attachment_id' => string '197' (length=3) 1 => array 'thumb' => string 'http://your_site/upload_path/yourSelectedImage.jpg' (length=50) 'full' => string 'http://your_site/upload_path/yourSelectedImage_fullSize.jpg' (length=69) 'attachment_id' => string '198' (length=3) 2 => ...
Resources
Network Activate
to activate plugin for all sites on a single install. It is only available on the Network admin site not anywhere else.
Simple Activate
activates for the site you are currently on. These will be permitted to be activated or deactivated on ANY blog.Network
be sure that the plugin is deactive in all installation of your WordPress network.
Contribute\
If you'd like to check out the code and contribute, join us on Github.
Pull requests, issues, and plugin recommendations are more than welcome!
dynamic-featured-images
directory to the plugin directory (/wp-content/plugins/
) or install it from Plugins->Add New->Upload
.Plugins
menu in WordPress.Screen Options
in the upper right corner of your wordpress admin and make sure that the Featured Image 2
box is selected.The problem is usually due to the conflicts with other plugin or theme functions. You can use general debugging technique to find out the problem. i. Switch to the default wordpress theme to rule out any theme-specific problems.\ ii. Try the plugin in a fresh new WordPress installation.\ iii. If it works, deactivate all plugins from your current wordpress installation to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).\ iv. Resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.
This happens when there is any problem in saving you post or page properly. For example, if you try to save or publish the post without the post title the featured images may not be saved properly.
If you need to add images from the remote url you need to switch back to ver. 2.0.2 . There is no such feature in ver. 3.0.0 and above.
Note: If you are using remote url to use the feature image, the helper functions may not work properly.
Alt, caption and title attribute for these images cannot be retrieved using helper functions. NULL
is returned instead.
This usually happens because of cache. Clear all your cache and try again if you are having this problem. If you still have such problem you can get help through support forum.
Yes! It is easily possible from version 3.1.13. A filter is added in the recent version for this purpose. Please feel free to report any bug found at https://github.com/ankitpokhrel/Dynamic-Featured-Image/.