It’s up to you to figure out how that all works with your data. The mechanisms are in place, but it’s up to you to relate content to terms so WP can deliver what you want.
]]>I then create a template with a term field and if the id equals 12345, show the content related to that id.
Am I correct so far?
]]>if ( $_GET['term-id'] == 12345 ) {
$query = new WP_Query(['my_taxonomy'=> 12345,]);
if ( $query->has_posts()) do_the_loop();
}
This of course only works for the ID 12345. You want it to work for any valid ID, as in:
if ( isset( $_GET['term-id'])) {
$query = new WP_Query(['my_taxonomy'=> $_GET['term-id'],]);
if ( $query->has_posts()) do_the_loop();
}
I’m pretty sure the latter is what you would have done, but the former is literally what you said ??
(the above code would not actually work, its purpose is only to illustrate logic)
]]>