Multiple loop, custom field and WP Alchemy
-
Hi, I have a page with multiple loops. I can pull the page information from the content/title etc on querying the template. It also pulls the custom field, however it only pulls 1 custom field. ie there are 3 separate pages each with there own custom field entry but it is only pulling the last entry.
Here is the site (its the scroller at the bottom of the page)
http://languagetest.preview4.co.uk/
And the code<?php query_posts(array( 'post_type' => 'page', 'posts_per_page' => 4, 'meta_value' => 'page-with-added-intro.php', )); ?> <?php while (have_posts()) : the_post(); ?> <li class="leadin"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <div class="inner"> <?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?> <p><?php echo $custom_text_mb->the_value('addtional_text'); ?></p> </div> <a class="view" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Find out more</a> </li> <?php endwhile;?>
Any ideas? Many thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Multiple loop, custom field and WP Alchemy’ is closed to new replies.