I have a custom post type called "issue" and a contents page for each issue. I tag all of my articles with each issue by the issue number, so for instance, all articles with Issue 15 are tagged
I have a custom post template for contents and I use the following code to call up all issue posts within the same issue number.
$wp_query = new WP_Query( array( 'post_type' => 'issue', 'tag' => 'issue-14', 'posts_per_page' => 50 ) );
Where it says
'issue-14', I need that to change based on a custom metabox field called
'issue-number' which only contains the number of the issue. So if the metabox field is "
12" I need the tag to be "