get_post_meta
-
I am a web designer but I am pretty much brand new to WordPress. I got this code sniplet from a lynda tut and it works well other than it lists back all pages instead of just the child pages of the current page. I hope this makes sense and someone can help.
I am trying to only draw back the immediate children of the list, not the parents or the next set of children
query_posts("posts_per_page=-1&post_type=page&post_parent=$pieces[1]"); while (have_posts()) : the_post(); ?> <a href="<?php the_permalink(); ?>" class="product-jump" title="<?php echo get_post_meta($post->ID, "product_price", true); ?>" data-large="<?php get_post_meta($post->ID, "product_image", true); ?>"> <span class="product-title"> <?php the_title(); ?> <span class="product-code"> <?php echo get_post_meta($post->ID, "product_code", true); ?><span></a>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get_post_meta’ is closed to new replies.