This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'meta_query' => array( | |
array( | |
'key' => 'fields.type', | |
'value' => 'bnb', | |
'compare' => '=', | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wf; | |
// suppose you have a post of type "family", slug "smith-family", with field set "details", and field "education_levels" | |
$selections = $wf->family( "smith-family" )->details->education_levels->selections(); | |
// $selections is now a value-label pair of the current selections. |
OlderNewer