FIX breacrumb language items
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d97b749f9b
commit
56dae76c2e
|
|
@ -21,9 +21,12 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
|||
$frontPageTitle = get_the_title(get_option('page_on_front'));
|
||||
|
||||
$searchPageId = 43;
|
||||
$currentLang = apply_filters('wpml_current_language', null);
|
||||
$searchPageId = apply_filters('wpml_object_id', $searchPageId, 'page', TRUE, $currentLang);
|
||||
|
||||
$searchPageTitle = get_the_title($searchPageId);
|
||||
$searchPageUrl = get_post_permalink($searchPageId);
|
||||
$currentLang = apply_filters('wpml_current_language', null);
|
||||
|
||||
do_action('wpml_switch_language', 'fr');
|
||||
$pageIcon = get_field('page_icon', $searchPageId) ?? null;
|
||||
do_action('wpml_switch_language', $currentLang);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user