Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2.  
  3. $connected = new WP_Query( array(
  4. 'connected_type' => 'recipes_to_ingredients',
  5. 'connected_items' => get_queried_object(),
  6.  
  7. ) );
  8.  
  9. while( $connected->have_posts() ) : $connected->the_post();
  10.  
  11. $cost = get_post_meta( $post->ID, 'foxware-ingredient-cost', true );
  12.  
  13. echo '<li>';
  14.  
  15. the_title();
  16.  
  17. // Display cost
  18. echo '<br>';
  19. echo 'Cost: ' . $cost;
  20. echo '</li>';
  21. endwhile;
  22.  
  23. echo ($cost + $cost); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement