Loop for custom post types filtered by a taxonomy

I’ve figured out the answer using the WordPress forum. Solution below: <?php query_posts( array( ‘country’ => ‘event-england’ ) ); ?> <?php if( is_tax() ) { global $wp_query; $term = $wp_query->get_queried_object(); $title = $term->name; } ?> <ul> <span class=”tax-title”><?php echo($title); ?></span> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li><a href=”https://wordpress.stackexchange.com/questions/17046/<?php … Read more

Why won’t this jQuery code work?

jQuery(‘a#add_media’).click(function() { input_code=”<p>” + ‘<input id=”upload_image-‘ + i + ‘” type=”text” size=”36″ name=”upload_image” value=”” />’ + ‘<input id=”upload_image_button-‘ + i + ‘” type=”button” value=”Upload Image” />’ + ‘</p>’; jQuery(input_code).appendTo(‘#upload_wrapper’); i++; }); jQuery(‘[id^=”upload_image_button”]’).click(function() { … }); Okay, here’s your basic problem. The first bit of the code adds a function to the click handler on the … Read more