adapting mede-eigendommen slug
This commit is contained in:
parent
e03fb775e7
commit
594cfc35b4
|
|
@ -10,6 +10,7 @@ function getThematiqueFamilySlug($thematique_slug)
|
||||||
if (!$thematique_slug) {
|
if (!$thematique_slug) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($thematique_slug) {
|
switch ($thematique_slug) {
|
||||||
case "energie":
|
case "energie":
|
||||||
case "urbanisme":
|
case "urbanisme":
|
||||||
|
|
@ -20,7 +21,7 @@ function getThematiqueFamilySlug($thematique_slug)
|
||||||
case "akoestiek":
|
case "akoestiek":
|
||||||
case "petites-coproprietes":
|
case "petites-coproprietes":
|
||||||
case "coproprietes":
|
case "coproprietes":
|
||||||
case "kleine-mede-eigendommen":
|
case "mede-eigendommen":
|
||||||
return "acoustique-coproprietes";
|
return "acoustique-coproprietes";
|
||||||
|
|
||||||
case "isolation":
|
case "isolation":
|
||||||
|
|
@ -267,3 +268,22 @@ function build_page_chapter_index($blocks)
|
||||||
}
|
}
|
||||||
return $chapterBlockIndex;
|
return $chapterBlockIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------
|
||||||
|
GET PARCOURS PREVIOUS/NEXT POSTS
|
||||||
|
---------------------------------------------*/
|
||||||
|
|
||||||
|
function get_parcours_previous_next_posts($post)
|
||||||
|
{
|
||||||
|
|
||||||
|
$prev_post = get_previous_post() ?? null;
|
||||||
|
$next_post = get_next_post() ?? null;
|
||||||
|
$test_next = get_adjacent_post(false, '', false, 'thematiques');
|
||||||
|
$test = new WP_Query(array('orderby' => 'menu_order', 'order' => 'ASC'));
|
||||||
|
|
||||||
|
return [
|
||||||
|
'prev_post' => $prev_post,
|
||||||
|
'next_post' => $next_post,
|
||||||
|
'test' => $test_next
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user