I am using WordPress 3.5.1 / Twenty Twelve Theme. I would like to display a custom field in my Category Archives. I have the following custom field working in my single.php , it displays a custom url / title
<a href="http://<?php echo get_post_meta($post->ID, "user_submit_url", true); ?>" target="_blank"> <h1 class="entry-title"><?php the_title(); ?> </a>
I would like to put the following code underneath the "entry-title" in Category Archives. I am confused of were to put the following php code, either in category.php or archive.php? Since I need to put this code inside the loop, I want the code to register on every post just like it registers in the single.php in the example I provided above. Something like the following, I presume?
get_post_meta($post->ID, "user_submit_url", true);
Let me know if I need to clarify anything.