includes/acf/fields/page_link.php 1 location
|
@@ 114-134 (lines=21) @@
|
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
// create tax queries |
| 114 |
|
if( !empty($field['taxonomy']) ) { |
| 115 |
|
|
| 116 |
|
// append to $args |
| 117 |
|
$args['tax_query'] = array(); |
| 118 |
|
|
| 119 |
|
|
| 120 |
|
// decode terms |
| 121 |
|
$taxonomies = acf_decode_taxonomy_terms( $field['taxonomy'] ); |
| 122 |
|
|
| 123 |
|
|
| 124 |
|
// now create the tax queries |
| 125 |
|
foreach( $taxonomies as $taxonomy => $terms ) { |
| 126 |
|
|
| 127 |
|
$args['tax_query'][] = array( |
| 128 |
|
'taxonomy' => $taxonomy, |
| 129 |
|
'field' => 'slug', |
| 130 |
|
'terms' => $terms, |
| 131 |
|
); |
| 132 |
|
|
| 133 |
|
} |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
|
| 137 |
|
// search |
includes/acf/fields/post_object.php 1 location
|
@@ 116-137 (lines=22) @@
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
// create tax queries |
| 116 |
|
if( !empty($field['taxonomy']) ) { |
| 117 |
|
|
| 118 |
|
// append to $args |
| 119 |
|
$args['tax_query'] = array(); |
| 120 |
|
|
| 121 |
|
|
| 122 |
|
// decode terms |
| 123 |
|
$taxonomies = acf_decode_taxonomy_terms( $field['taxonomy'] ); |
| 124 |
|
|
| 125 |
|
|
| 126 |
|
// now create the tax queries |
| 127 |
|
foreach( $taxonomies as $taxonomy => $terms ) { |
| 128 |
|
|
| 129 |
|
$args['tax_query'][] = array( |
| 130 |
|
'taxonomy' => $taxonomy, |
| 131 |
|
'field' => 'slug', |
| 132 |
|
'terms' => $terms, |
| 133 |
|
); |
| 134 |
|
|
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
|
| 140 |
|
// search |
includes/acf/fields/relationship.php 1 location
|
@@ 147-166 (lines=20) @@
|
| 144 |
|
); |
| 145 |
|
|
| 146 |
|
|
| 147 |
|
} elseif( !empty($field['taxonomy']) ) { |
| 148 |
|
|
| 149 |
|
$taxonomies = acf_decode_taxonomy_terms( $field['taxonomy'] ); |
| 150 |
|
|
| 151 |
|
// append to $args |
| 152 |
|
$args['tax_query'] = array(); |
| 153 |
|
|
| 154 |
|
|
| 155 |
|
// now create the tax queries |
| 156 |
|
foreach( $taxonomies as $taxonomy => $terms ) { |
| 157 |
|
|
| 158 |
|
$args['tax_query'][] = array( |
| 159 |
|
'taxonomy' => $taxonomy, |
| 160 |
|
'field' => 'slug', |
| 161 |
|
'terms' => $terms, |
| 162 |
|
); |
| 163 |
|
|
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
|
| 169 |
|
// search |