a guest May 28th, 2013 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Suppose you have a "details" field set with three related post fields:
- "related_pieces", "related_posts", and "related_pages".
- Now suppose you're on a single "piece" page - To get the incoming posts for "related_pieces" only, do this:
- $pieces = $wf->the->incoming("for=details.related_pieces");
- // Note: the meta keys are in the form "field_set_name.field_name"
RAW Paste Data