Make WordPress Core

Opened 11 years ago

Closed 9 years ago

#35409 closed enhancement (invalid)

Custom Taxonomy UI is not generated in "Press This" Panel

Reported by: undergroundnetwork Owned by:
Priority: normal Milestone:
Component: Press This Version: 4.2
Severity: normal Keywords:
Cc: Focuses: ui

Description

Custom Taxonomies do not show up in the Press This panel. It only shows the common Category & Tags.

In addition, if you use a custom post type for Press This, the Press This panel continues to show regular Category and Tags, even if you do not have any of those taxonomies for the custom post type.

http://media.underground.net/images/trac/custom-taxonomy.png

Change History (3)

#1 follow-up: @kraftbj
11 years ago

  • Milestone Awaiting Review → Future Release
  • Type defect (bug) → enhancement
  • Version 4.4.1 → 4.2

While the conversation regarding expanding PT has centered around allowing plugins to hook in meta boxes of some type, custom taxonomies on the post post type isn't something I've thought of personally. It seems plausible without opening up a Pandora's box.

Regarding using a CPT for Press This, can I ask how you have that setup? Using it for CPTs isn't something I explored during development.

#2 in reply to: ↑ 1 @undergroundnetwork
11 years ago

Replying to kraftbj:

While the conversation regarding expanding PT has centered around allowing plugins to hook in meta boxes of some type, custom taxonomies on the post post type isn't something I've thought of personally. It seems plausible without opening up a Pandora's box.

Regarding using a CPT for Press This, can I ask how you have that setup? Using it for CPTs isn't something I explored during development.

I used the following code to get Press This to work with a Custom Post type:

/**
 * Plugin Name: Custom Press-This Post Type
 * Plugin URI:  http://wordpress.stackexchange.com/a/192065/26350
 */
add_action( 'wp_ajax_press-this-save-post', function()        
{ 
    add_filter( 'wp_insert_post_data', function( $data )
    {
        if( isset( $data['post_type'] ) && 'post' === $data['post_type'] )
            $data['post_type'] = 'un_ratethepress'; // <-- Edit this to your needs!

        return $data;
    }, PHP_INT_MAX );

}, 0 );

It works GREAT! Whenever I press the Press This bookmarklet it now uses the custom post type.

The reason WHY we're using a Custom Post Type is that we're creating a website where we rate News Articles from around the web for accuracy in reporting, kind of like a "Snopes" for News and "Press This" is perfect for this in the way it works (reposting articles, grabbing summaries, and allowing you to comment.) For "Fair Use" guidelines, when you repost other people's content you want to be commenting on that content otherwise you are potentially stealing their content (per copyright guidelines)

We have an additional taxonomy called RATING and it looks like this:

http://media.underground.net/images/trac/concept2.jpg

  • Not Sure if you wanted the WHY or the HOW so I included both.

Thanks!
Charles

#3 @kraftbj
9 years ago

  • Milestone Future Release
  • Resolution → invalid
  • Status new → closed

With PT being moved to a separate plugin, kicking this over to ​https://github.com/WordPress/press-this/issues/9

Note: See TracTickets for help on using tickets.