如何在Wordpress中设置页面,通过网址中的标记显示自定义帖子类型?

I'd like to utilize archive.php or tag.php to display all custom post types that have the tag that was searched/entered in the url string.

For instance, I have a custom post type called "jobs" and over time many different tags will be added to jobs. Let's say I add the tag "local" to the post type "jobs."

If I go to the page sitepath/tag/local a page appears but I can't figure out how to set up the loop on the page so it displays the all the jobs that have been tagged with "local".

I understand I could pass in $args = array( 'post_type' => 'jobs', 'tag' => 'local'), but this doesn't scale to fit the solution I eventually need, where I could create new jobs with different tags, and then pull them up based on a pre-established url pattern.

Have a look at WP_Query and make you're own query. If you're using tags, you can check Tag parameters and if you're using a custom taxonomie, use Taxonomy parameters