开发者 |
isabel104
eliorivero |
---|---|
更新时间 | 2020年8月30日 12:48 |
PHP版本: | 3.8 及以上 |
WordPress版本: | 4.8-alpha-40124 |
版权: | GNU Version 2 |
版权网址: | 版权信息 |
Downloads --> Settings --> Extensions tab
.
.pot
file so you can easily translate into other languages.
Downloads --> Settings --> Extensions tab
to change the default settings.Appearances --> Widgets
.Most likely, there are no other downloads that share that download's tag or category.
Yes. Use WordPress's function the_widget
. If you want the default output, use:
the_widget('edd_related_downloads_widget');
If you want to specify parameters for this instance, use:
$inst = array( 'title' => 'You May Also Like', 'number' => 3, 'taxcat' => false, ); the_widget('edd_related_downloads_widget', $inst, $args);
However, the 2 above will style it just like the sidebar widget, which is list-style. If you want this to appear grid-style, like the default Related Downloads that get added below the content, you have to add the $args
parameter, like so (you can change the $inst, but not the $args if you want grid-style):
$inst = array( 'title' => 'You May Also Like', 'number' => 3, 'taxcat' => false, ); $args = array( 'before_widget' => '<div id="isa-related-downloads" class="widget">',// make it grid-style 'after_widget' => '</div>', ); the_widget('edd_related_downloads_widget', $inst, $args);
Yes, see this
Yes, see this.
.pot
file