WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 down vote accepted

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

http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters

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

Your Answer

 
discard

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.