WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Group does not remember correct ter (2 posts)

  1. bankofcanada
    Member
    Posted 1 year ago #

    If you have 2 taxonomies that use the same term, then the groups will use the first taxonomy (possibly alphabetically) instead of remembering which of the taxonomies it was actually selected in.

    Steps to reproduce:
    1) create a category named "Test" (don't set the slug or description)
    2) create a tag named "Test" (don't set the slug or description)
    3) create a group "term test"
    4) edit the Terms
    5) select "Test" under Tags taxonomy
    6) click "OK"
    7) click "Save"
    8) go back to Custom Fields page

    Expected result:
    The Taxonomies section for group "term test" should read: "tag: Test"

    Actual result:
    The Taxonomies section for group "term test" reads: "category: Test"

    NOTES:
    My guess is that it is using the term_id instead of the term_taxonomy_id. A way to fix this without necessarily breaking backward compatibility would be to record the term_id as well as the correct taxonomy.

    http://wordpress.org/extend/plugins/types/

  2. Srdjan
    Member
    Plugin Author

    Posted 1 year ago #

    Types are using term_id.
    Both terms are actually one entry in wp_terms table.
    But 2 separated entries in wp_term_taxonomy table.
    We'll see how to record that without breaking existing groups.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.