| @@ -306,19 +306,9 @@ | ||
| 306 | 306 | $link = ''; |
| 307 | 307 | $html = ''; |
| 308 | 308 | |
| 309 | 309 | if ('where_filter' == $column_name) { |
| 310 | - $set_settings_fields = $fss->getSettingsLocationTypeFields($post_id); | |
| 311 | - | |
| 312 | - foreach ($set_settings_fields as $key => $attributes) { | |
| 313 | - if ($attributes['id'] == $fss->generateFieldId('post_name')) { | |
| 314 | - $current_index = isset($attributes['value']) ? $attributes['value'] : ''; | |
| 315 | - $options = !empty($attributes['options']) ? $attributes['options'] : []; | |
| 316 | - if (isset($options[$current_index]['data-link'])) { | |
| 317 | - $link = esc_attr($options[$current_index]['data-link']); | |
| 318 | - } | |
| 319 | - } | |
| 320 | - } | |
| 310 | + $link = flrt_filter_set_front_link($post_id); | |
| 321 | 311 | |
| 322 | 312 | if ($under_limit_filter_set) { |
| 323 | 313 | $post_type_field = $filterSet->getPostTypeField($post_id); |
| 324 | 314 | $post_type = !empty($post_type_field['post_type']['value']) ? $post_type_field['post_type']['value'] : ''; |