Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I figured out with my jquery slider. Need to help (:

my query is:

<?php $the_query = new WP_Query('showposts=10&orderby=post_date&order=desc'); while ($the_query->have_posts()) : $the_query->the_post(); ?>
<?php $imaj = get_post_meta($post->ID, 'manset', true); ?>

<?php the_permalink()?>
<img src="<?php echo $imaj; ?>" alt="" />

<?php endwhile;?>
<?php wp_reset_query(); ?>

with this query, the query print all posts. But i would like to display just if the post has "manset" custom field in it. how can i do that

( sorry about my bad english )

share|improve this question

1 Answer 1

up vote 2 down vote accepted

A quick google search would have directed you to this page:

share|improve this answer
all right thats what i want thank you –  Fatih Toprak Aug 9 '11 at 23:10

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.