SHARE
TWEET

MP 3093

a guest May 28th, 2013 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top