Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressで投稿者を特定のカテゴリーに制限する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPressサイトの特定のカテゴリーにしか投稿できないように投稿者を制限したいですか?

複数の投稿者がいるブログを運営している場合、投稿者の投稿先を特定のカテゴリーやサイト内の特定のセクションに限定すると便利です。

この投稿では、WordPressで投稿者を特定のカテゴリーに簡単に制限する方法を紹介します。

How to restrict authors to specific category in WordPress

なぜ投稿者を特定のカテゴリーに制限するのか?

WordPressブログに複数の人が執筆している場合、適切なカテゴリーを選択できない可能性があります。

投稿者を特定のカテゴリーに制限することで、投稿者が選択できるカテゴリーを限定することができます。投稿者を1つのカテゴリーに限定して投稿させることもできます。

これは、彼らが得意とするライティングに集中できるだけでなく、誤ったカテゴリーにコンテンツが投稿されるのを防ぐこともできる。

全体として、カテゴリーを適切に使用することは、サイトのSEOランキングにも非常に有益です。

ということで、投稿者を特定のカテゴリーに制限する方法を見てみましょう。

方法1:PublishPress権限を使用して投稿者カテゴリーを制限する

この方法はより柔軟で、投稿者をカテゴリーだけでなくタグや投稿タイプにも制限する追加オプションを提供します。

まず、PublishPress Permissionsプラグインをインストールし、有効化する必要があります。詳しい手順は、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

有効化したら、管理サイドバーから権限 ” グループのページにアクセスし、「新規追加」ボタンをクリックする必要があります。

Click the Add New button to create a new permission group

次に、新しい権限グループの名前と説明を書く必要があります。このグループのライターはすべて、投稿できるカテゴリーが同じになります。

例えば、WordPressサイトの「チュートリアル」カテゴリーに特定のライターを限定したい場合などです。グループに覚えやすい名前を付けて、「グループを作成」ボタンをクリックしてください。

Type a name and description for the Permissions group

権限グループを作成したら、「グループメンバー」セクションまでスクロールダウンする必要があります。

ここから、特定のカテゴリーに限定したい投稿者名を検索ボックスに入力する必要がある。

Type the author name in the search box

検索結果が表示されたら、投稿者名を選択し、「選択」ボタンをクリックします。

これにより、投稿者の名前が「現在の選択」列に移動します。

Author's name moved to the Current Selections option

次に、少し下にスクロールして、「特定の権限を設定」タブに切り替える必要があります。

ここから、「投稿タイプ」ドロップダウンメニューから「投稿」オプションを選択する必要があります。

Select Post option from the dropdown menu

これにより、より多くの設定が可能になる。

次に「Operation」列の「Assign Term」オプションをクリックし、「Adjustment」列の「Limit to」オプションを選択する。

その後、「資格」ドロップダウンメニューから「カテゴリー」オプションを選択する。

Configure settings

資格」の下の「カテゴリー」を選択すると、「カテゴリーの選択」セクションが表示されます。

ここから、投稿者を制限したい特定のカテゴリーの横にあるボックスにチェックを入れるだけです。複数のカテゴリーを選択することもできます。

次に、’Add Selected’ボタンをクリックして続けます。

Choose categories for restriction

権限グループの詳細が画面に表示されます。

詳細を再確認し、「権限を保存」ボタンをクリックして設定を保存することができます。

Click the Save Permissions button

これで投稿者を特定のカテゴリーに制限することができました。

コンテンツエディターにアクセスすると、投稿者は右カラムの「カテゴリー」パネルで選択したカテゴリーだけを見ることができます。

Restricted category in the content editor

権限グループの変更、削除、投稿者の追加・削除はいつでも可能です。

WordPressの管理サイドバーから権限 ” グループのページに行き、変更したい権限グループの下にある編集リンクをクリックするだけです。

Edit permissions group

方法2:無料のプラグインを使って投稿者カテゴリーを制限する

上記の方法があなたの求めているものでないなら、この方法をどうぞ。

まず、Restrict Author Categoriesプラグインをインストールして有効化する必要があります。詳しくは、WordPressプラグインのインストール方法についての初心者ガイドをご覧ください。

注:Restrict Author Categoriesプラグインは、WordPressの過去3つのバージョンで更新されていません。しかし、テストしたところ問題なく動作しました。それでもわからない場合は、WordPressのプラグインが古い場合のガイドをご覧ください。

有効化したら、管理サイドバーから投稿者カテゴリの制限 ページにアクセスしてください。

そこで、「ユーザー」セクションのリストから投稿者を選ぶだけです。

Select a user

投稿者を選択すると、サイトのすべてのカテゴリーが右側に表示されます。投稿者を制限したいカテゴリーにチェックを入れてください。

チェックを外したカテゴリーは、特定の投稿者のオプションとして表示されません。

選択すると、投稿者名の横のトグルが自動的に「有効化」に切り替わり、設定が保存されます。

Select categories you want to restrict the author to

これで、投稿者はコンテンツエディターにアクセスすると、サイドバーの「カテゴリー」パネルの下にある特定のカテゴリーだけを見ることができます。

ご覧のように、プラグインの設定により、他のカテゴリーを選択することはできません。

Restricted categories won't be shown now under the Categories section

WordPressで投稿者を特定のカテゴリーに限定する方法についてご理解いただけたでしょうか。WordPressで会員制サイトを作成する方法や、専門家が選ぶすべてのサイトに最適なWordPressプラグインもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

20件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Misty Rudkin says

    It is useful plugin though if the category takes its children too, that’d be great.
    I am trying to edit on plugin editor and use get_term_children(), is there get_term_childrean_and_parent function in WordPress?

    • WPBeginner Support says

      For editing the plugin, you would want to reach out to the plugin’s support and they can normally assist with modifications as well as possibly integrating it into the plugin. If you only modify the plugin then you could lose customizations when the plugin updates.

      管理者

    • WPBeginner Support says

      Thank you for letting us know about this, we’ll be sure to look into updating the article :)

      管理者

    • WPBeginner Support says

      Thank you for letting us know about this, we will be sure to look into an alternative

      管理者

  3. Umar Hashim says

    how to make published posts editable by allowed authors but need to be approved by administrator?

    Custom Post Type = Employee
    Employee A
    Employee B

    Author A assigns to Employee A Post
    Author B assigns to Employee B Post

    Both posts are already published (Employee A and Employee B)
    Author A updates Employee A Post, nothing changed with online version but post is saved as pending review, email sent to administrator, who review changes and allow publish or discard changes.

    can this be doable with Edit Flow?

      • Umar Hashim says

        i have created the custom user role and i assign him edit published posts, but questions is how to make published post enable to be edited but not published again until admin review changes and allow to publish post.

        like Employee A page already published and online for viewers.. Author A assigns to Employee A page.. Author A do changes to Employee A page, now changes don’t get publish but email sent to administrator that changes to Employee A page has been made by Author A.
        administrator either approves changes or discard changes. on approval Employee A page online version updated for visitors.

        • Umar Hashim says

          I managed to get it in working.

          i used “Capability Manager Enhanced” plugin along with “Revisionary” Plugin.

          now published posts are submitted for review before going to publish online.

          but now issue is we are using Custom Fields by using “Advance Custom Fields” plugin on Custom Post Type “Employee”, in Revisionary preview screen, we are not able to see those Custom Fields but only WordPress default Editor.

          Is it possible to get Custom Fields Updates in Preview Comparision?

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。