| 开发者 | keesiemeijer |
|---|---|
| 更新时间 | 2026年1月23日 03:39 |
| PHP版本: | 5.9 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[related_posts_by_tax]
Attributes for the shortcode are:
post_idtaxonomiespost_typesposts_per_pageorderorderbybefore_shortcodeafter_shortcodetitleshow_datebefore_titleafter_titleinclude_termsinclude_parentsinclude_childrenexclude_termsexclude_postsformatgallery_formatimage_sizecolumnscaptionlink_captionlimit_postslimit_monthmeta_keymeta_valuemeta_comparemeta_typepublic_onlyinclude_selfpost_class[related_posts_by_tax posts_per_page="10"]
See the documentation for more information about these attributes.
翻译
related-posts-by-taxonomy.zip folder.related-posts-by-taxonomy folder to your /wp-content/plugins directory.For more information about the plugin see the plugin documentation.\ To customize this plugin see the plugin recipes page. Yes. Review this section of the documentation to style the related posts yourself.
Yes. For the widget see this filter and for the shortcode see the attributes include_terms, exclude-terms and exclude_posts.
Yes. Review Setting your own defaults for the shortcode
Yes. See this filter on how to do that.