query not responding to a 3 word page title string
I am using the current sigle post title to pull in related posts.
the posts are taged with the taxonomy of the artist’s name. —
the fields are all magic fields.
so – find posts in the category “release” – where the artists name (which happens to be the title of the post) matches the artist taxonomy.
This is working great. When I did this things really clicked
HOWEVER > now there is a band with 3 words… and their related albums are not appearing. you can see it HERE.
so where as “rainbow arabia” works perfect
“coyote clean up” is not working. when I change it to “coyote clean” it does.
see ‘artist’ =>wp_title(“”,false)’, below…
<div class="artist-release-box"> <h2 class="artist-box-header">releases</h2> <?php query_posts( array( 'category_name' => 'releases', 'artist' => wp_title("",false), 'showposts' => 0, ) )?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="grid-artist-release"> <div class="hover-img"> <a href="<?php the_permalink() ?>"> <img alt="release image" src="<?php echo get ('release_info_release_image') ?>"></a> </div> <h3><?php echo get ('release_info_artist') ?>:</h3> <h4><em><?php echo get ('release_info_release_title') ?></em></h4> </div> <!--end grid-artist-release--> </div> <!--end post_class thing --> <?php endwhile; ?> <?php else : ?> <p>there are currently no releases posted for this artist.</p> <?php endif; ?> <?php wp_reset_query(); ?> </div> <!-- artist-release-box -->
Any help on this would be great.
I’m not entirely sure if this is even a magic fields issue or if I’m pushing the wordpress in a hacky direction.
- The topic ‘query not responding to a 3 word page title string’ is closed to new replies.