N2H Nice to Have bundles the following features into a single plugin, each of which can be turned on or off independently from one settings screen:
%category% permalink.Because Category Single Selector only ever allows one category to be selected, it cannot be combined with Category Parent Lock or Primary Category; enabling it automatically disables and locks those two. Category Order Keeper can remain enabled because it only controls display order.
If a feature is enabled here while its standalone plugin (e.g. the separate “N2H Primary Category” plugin) is also active, an admin notice warns you to deactivate the standalone plugin to avoid running the same feature twice.
N2H Nice to Have は、ちょっと便利な小技(メディア / カテゴリー周り)を1つのプラグインにまとめ、1つの設定画面から機能ごとに個別にON/OFFを切り替えられるようにします。
%category% パーマリンクに反映します。Category Single Selector は常に1つのカテゴリーしか選択できないため、Category Parent Lock・Primary Category とは併用できません。Category Single Selector を有効にすると、この2つは自動的に無効化されロックされます。Category Order Keeper は表示順だけを制御するため、同時に使用できます。
ここで有効化した機能に対応する単体プラグイン(例: 別配布の「N2H Primary Category」プラグイン)も有効になっている場合、同じ機能が二重に動作することを避けるため、単体プラグインを無効化するよう管理画面の通知で警告します。
/wp-content/plugins/n2h-nice-to-have にアップロードするか、WordPress の「プラグイン」画面から直接インストールします。単体プラグインとこの統合プラグインを同時に使えますか?
同じ機能について同時に使うことはできません。両方有効にすると同じコードが二重に実行されるため、設定画面で競合の警告が表示されます。1つの機能につき、単体プラグインか統合プラグインの切り替えのどちらか一方を使用してください。
Category Parent Lock・Primary Category を有効にできないのはなぜですか?
Category Single Selector が有効な間は、この2つの機能は自動的に無効化・ロックされます。これは Category Single Selector 使用時には常に1つのカテゴリーしか選択できないためです。Category Order Keeper は同時に使用できます。
1.1.3
* プラグイン一覧に表示される説明文を更新しました。
1.1.2
* N2H Primary Category が、メインカテゴリーを %category% パーマリンク(先祖カテゴリーを含む)にも反映するようになりました。
1.1.1
* 他のプラグインとの互換性と、WordPress管理画面でのアセット読み込み方法を改善しました。
1.1.0
* ソース言語を英語にし、日本語翻訳を追加しました。
1.0.0
* 初回リリース。