FIX suggest artisan url
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
e0c395180d
commit
cfe696ecb1
|
|
@ -151,10 +151,8 @@ $foundPosts = $args['foundPosts'] ?? null;
|
|||
<?php
|
||||
$currentLang = apply_filters('wpml_current_language', null);
|
||||
|
||||
$suggestArtisanPageId = 309;
|
||||
$suggestArtisanPageIcon = get_field('page_icon', $suggestArtisanPageId) ?? null;
|
||||
|
||||
|
||||
$temp_suggestArtisanUrl = $currentLang === "fr" ? "/suggerer-une-entreprise" : "bedrijf-voorstellen";
|
||||
|
||||
$artisanAboutPageId = 5;
|
||||
|
|
@ -167,8 +165,7 @@ $foundPosts = $args['foundPosts'] ?? null;
|
|||
|
||||
?>
|
||||
|
||||
<!-- <a class="card-suggest-artisan card block" href="<?php echo get_home_url() . $temp_suggestArtisanUrl ?>"> -->
|
||||
<a class="card-suggest-artisan card block" href="<?php echo get_the_permalink($suggestArtisanPageId) ?>">
|
||||
<a class="card-suggest-artisan card block" href="<?php echo get_home_url() . $temp_suggestArtisanUrl ?>">
|
||||
<img class="search-artisan-btn__page-icon" src="<?php echo $suggestArtisanPageIcon['sizes']['medium_large'] ?> " alt="">
|
||||
<p><?php echo __("Communiquer une entreprise ou un artisan", "metiers-patrimoine-theme") ?></p>
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user