Guest User

Untitled

a guest
Nov 12th, 2013
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2.                 $posts = get_field('the-set');
  3.                 if( $posts ): ?>
  4.                     <ul>
  5.                     <?php foreach( $posts as $post_object): ?>
  6.                        
  7.                         <?php $productpackage = get_the_ID($post_object->ID); ?>
  8.                        
  9.                         <? echo do_shortcode("[wpdm_package id=".$productpackage."]"); ?>
  10.                    
  11.                     <?php endforeach; ?>
  12.                     </ul>
  13.                 <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment