這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Keep Pagination in Same Taxonomy

描述

Instantly join separate posts together by making the Previous/Next Post links look for other posts that share the same taxonomies.

This lightweight plugin simply adds a filter to your selected taxonomies (both default and custom) so that any theme can have its post navigation links stay in the same category as the currently viewed post.

安裝

  1. Upload the plugin files to the /wp-content/plugins/keep-pagination-in-same-taxonomy/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Go to the Settings -> Reading page to configure the plugin, picking which taxonomies should be affected.

常見問題

Why Isn’t It Linking To The Post I Expected?

Be sure that you’ve only selected the taxonomies that are shared between the posts you want to link together AND that you aren’t asking for the posts to match them all!

Eg. With the “ALL” option, if you select both Categories and Tags, then a post which has a category and some tags will NOT find other posts that only have the same category but no tags.

評價

2022年9月29日
Thanks for this piece of superb plugin! Been trying to confine users to navigate the same category! I have tried so many methods, including modifying the single.php but to no avail. Thank you!
2022年4月4日
Highly recommended! Just tried it after many hours of fighting with a Bravada WP Theme! Works wonderfully! Thank you, Keith!
閱讀全部3個評價

貢獻者及開發者

“Keep Pagination in Same Taxonomy” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

修改日誌

0.11

  • Bugfix: check if we’ve excluded all the terms from a taxonomy

0.1

  • Initial release.