How are terms connected with posts in database?

The posts are related to taxonomies (taxonomy/tag) in the wp_3_term_relationships table, where the object_id column is the post’s id, and the term_taxonomy_id is the taxonomy/tag id. Depending on what you want to accomplish, the solution might be to create the same taxonomies at each blog. This way the tax_query should work as normal.

Organizing WP Pages based on old website database

Before getting into Importing, I would familiarize yourself with both the standard post type and post_meta as well as custom post types and taxonomies. If your end goal would benefit from the latter, you will save yourself quite a bit of headache utilizing them during the import preparation. If you prefer working with the database … Read more

Syncing local content with development / staging sites

Overview That’s the one main caveat of WordPress development, that even a seasoned WordPress developer still wonders what’s the perfect automation for syncing database content from local environment to live server. You can’t just upload your database dump from your local development environment to the server and be happy with the results. WordPress actually stores … Read more

Inserting choice in database table

The main issue with your code is that the form submission will always have the same value. This could be seen by debugging $_POST where you check if $_POST[‘submit’] was set. I set up a custom database table and added some dummy data. I think this more or less mirrors your setup. Here is the … Read more