Support » Plugin: CPT-onomies: Using Custom Post Types as Taxonomies » 1.3: Bulk Edit missing?

  • Ever since upgrading to 1.3, my CPT-onomy is not available in bulk edit. So I have a CPT called awards, and a CPT-onomy called award types. I have award types attached to awards (if I go to the edit page, I can see my award types in awards).

    However, when I’m on the edit.php?post_type=awards page and select a bunch of awards and click edit under bulk actions, I can’t recategorize to different award types.

    This was present before upgrading, no other plugins have been installed since then.

    Any idea?

    Thanks

    EDIT: Debugging through this…
    I see you’ve registered bulk_quick-edit_custom_box as an action in admin.php

    – my $column_name passed to the function is “taxonomy-award_type” (registered CPT is “award_type”)

    – my $post_type passed to the function is “awards” (makes sense)

    – It immediately fails at if ( strpos( $column_name, CPT_ONOMIES_UNDERSCORE ) !== false ) { because there’s no “custom_post_type_onomies” in “taxonomy-award_type”

    – I temporarily changed that to if (true) { to see what would happen

    – the $taxonomy after strtolower(str_replace()).. came back out as “taxonomy-award_type”

    taxonomy_exists("taxonomy-award_type") == FALSE
    $cpt_onomies_manager->is_registered_cpt_onomy( "taxonomy-award_type" ) == FALSE
    – This makes sense because it still has “taxonomy-” in the string

    so I changed some code and it works, but I don’t know what else this will affect so I don’t want to do proceed until hearing back from you.

    Changed
    if ( strpos( $column_name, CPT_ONOMIES_UNDERSCORE ) !== false ) {
    to
    if ( strpos( $column_name, "taxonomy-") !== false ) {

    Changed
    $taxonomy = strtolower( str_replace( CPT_ONOMIES_UNDERSCORE . '_', '', $column_name ) );
    to
    $taxonomy = strtolower( str_replace( "taxonomy-", '', $column_name ) );

    and it shows up in the bulk edit, but it doesn’t actually appear to work. I tried to classify 26 posts, and none of them actually have the correct checkbox checked after doing so

    Here is my action when clicking the update button in quick edit:

    s:
    post_status:all
    post_type:awards
    _wpnonce:fd40051d6c
    _wp_http_referer:/clientname/wp-admin/edit.php?post_type=awards
    action:edit
    m:0
    lang:en
    paged:1
    post_author:-1
    post_parent:-1
    _status:-1
    _custom_post_type_onomies_relationship[award_type][]:11020
    is_bulk_quick_edit:true
    assign_cpt_onomies_award_type_rel:true
    bulk_edit:Update
    post_view:list
    screen:edit-awards
    post[]:11013
    post[]:11009
    post[]:11011
    post[]:11003
    post[]:11005
    post[]:11007
    post[]:10999
    post[]:11001
    post[]:10997
    post[]:10995
    post[]:10991
    post[]:10989
    post[]:10985
    post[]:10987
    post[]:10993
    post[]:10983
    post[]:10979
    post[]:10981
    post[]:10971
    post[]:10973
    post[]:10977
    post[]:10975
    post[]:10969
    post[]:10967
    post[]:10963
    post[]:10965
    action2:-1

    Based on ajax_save_bulk_edit in admin.php, since ‘custom_post_type_onomies_post_ids’ and ‘custom_post_type_onomies_taxonomy’ is not set, I’m guessing it doesn’t save properly.

    http://wordpress.org/extend/plugins/cpt-onomies/

Viewing 1 replies (of 1 total)
  • Thanks, murtrd, for all the work you’ve put into figuring this out. I’ve been, and still am, under the weather but I’ll start looking into this as soon as my head will allow me. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘1.3: Bulk Edit missing?’ is closed to new replies.