Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.
<div id="category-song">
            <h4>Song Search Engine  <span><?php $select = wp_dropdown_categories('show_option_none=Select category&show_count=1&orderby=name&echo=0'); echo $select ?></span>   </h4>
             <?php $song = new WP_Query("showposts=5&category_name='.$select.'"); while($song->have_posts()) : $song->the_post();?>
                       <?php the_post_thumbnail('small', array('class' => 'small-pic')); ?><a href="<?php the_permalink(); ?>" title="<?php echo get_the_title(); ?>"><?php echo short_title(); ?></a>
                        <div class="lower-content">
                            <?php if(function_exists('the_views')) { the_views(); } ?> kere dinlendi.
               <?php endwhile; ?>       

with the code i have gave im listing the first pick one but when i try to pick another catagory listing is fail so how can i do this listing without page renewal

share|improve this question
Are you trying to load posts from a category in the drop down list without refreshing the page? If so, what should be listed on the first page load, when the user has not yet selected a category? –  Charles Clarkson Jul 4 '13 at 20:59
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.