WordPress.org

Forums

Require Post Category
Custom Post Types (1 post)

  1. Eckstein
    Member
    Posted 2 years ago #

    This plugin works well, but doesn't support custom post types. However, it's quite easy to add that support by replacing this code in require-post-category.php:

    if($post_type=='post'){

    With this code:
    if($post_type=='your_custom_post_type'){

    You could also get a little advanced and add another check against more than one post type (posts, pages, custom post types, etc).

    Just an FYI for anyone looking for this functionality!

    http://wordpress.org/extend/plugins/require-post-category/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Require Post Category
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Eckstein
  • This topic is not a support question
  • WordPress version: 3.5