Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- 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"
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement