Advertisement
Guest User

MP 3093

a guest
May 28th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. Suppose you have a "details" field set with three related post fields:
  6. "related_pieces", "related_posts", and "related_pages".
  7. Now suppose you're on a single "piece" page - To get the incoming posts for "related_pieces" only, do this:
  8.  
  9. */
  10.  
  11. $pieces = $wf->the->incoming("for=details.related_pieces");
  12.  
  13. // Note: the meta keys are in the form "field_set_name.field_name"
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement