Custom Fields
Re-Envisioned
Support General Taxonomy Field – Not saving to term_relationships

This topic contains 3 replies, has 2 voices, and was last updated by  davidrknowles 11 months ago.

  • Creator
    Topic
  • #11403
    Resolved
    davidrknowles
    Participant

    I have come across something weird, I used the straight Taxonomy Field as opposed to the Advanced Taxonomy Field due to its ability to sets post terms.

    I am not sure if this is an issue with having a custom table on the post type, as I found the term meta in my custom table.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #11406

    davidrknowles
    Participant

    Just released I didn’t finish what I was thinking lol

    So the taxonomy field is not creating a relationship with the post and the term, I think the standard way is to write the link in the term_relationships table but this isn’t happening, instead, it is writing to the custom table I have on that post type for all the meta.

    I am yet to try and see if having the table is the cause of the issue.

    #11420

    Anh Tran
    Keymaster

    Hi David,

    If you set the meta box to use a custom table, then all fields will save data in the custom table. The storage (custom table) is set for meta box, thus it applies to all its fields.

    #11434

    davidrknowles
    Participant

    Thanks Anh, thought this might have been the case, I have made an AJAX hack but am just trying to refine it a little and use a filter or action that passes the meta fields before it is saved to the database.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.