Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $connected = new WP_Query( array(
- 'connected_type' => 'recipes_to_ingredients',
- 'connected_items' => get_queried_object(),
- ) );
- while( $connected->have_posts() ) : $connected->the_post();
- $cost = get_post_meta( $post->ID, 'foxware-ingredient-cost', true );
- echo '<li>';
- the_title();
- // Display cost
- echo '<br>';
- echo 'Cost: ' . $cost;
- echo '</li>';
- endwhile;
- echo ($cost + $cost); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement