WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Filter custom post type by taxonomy (5 posts)

  1. thorirv
    Member
    Posted 1 year ago #

    In the WP admin panel, posts can be filtered by category.
    Similarly, can a custom post type be filtered by taxonomy in the WP admin, and can this be set with this plugin?

    Regards
    Thorir V

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. Brad Williams
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin does not have this feature, but here's an article that explains how to do it:

    http://pippinsplugins.com/post-list-filters-for-custom-taxonomies-in-manage-posts/

  3. thorirv
    Member
    Posted 1 year ago #

    Thanks for reply Brad. I should have posted an update, but that's excactly the article that helped me get it to work : )

    The only thing I didn't figure out yet was how to apply the same filtering to two custom post types. Copying the article's code I used if( $typenow == 'my_custom_post_type' ) and was hoping I could add another by using array, but haven't yet figured out how. Don't need it actually, so in this case it's not a big issue.

    Thanks again.
    Terrific plugin! Never would have pulled this off without it.

  4. Brad Williams
    Member
    Plugin Author

    Posted 1 year ago #

    Like this:

    if( $typenow == 'faqs' || $typenow == 'movies' ) {
  5. thorirv
    Member
    Posted 1 year ago #

    Brad, I owe you coffee!

    : )
    Many thanks - Thorir V

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic