cleaning unecessary commented lines
This commit is contained in:
parent
ee04445af0
commit
610f967480
|
|
@ -18,14 +18,6 @@ $args = array(
|
|||
'meta_compare' => '!=',
|
||||
);
|
||||
$brochuresPosts = new WP_Query($args);
|
||||
// $sortedBrochuresPosts = sort_posts_per_thematiques_priority($brochuresPosts);
|
||||
|
||||
// $sortedBrochuresPosts->posts = array_slice($sortedBrochuresPosts->posts, 0, $posts_per_page);
|
||||
// $sortedBrochuresPosts->found_posts = $posts_per_page;
|
||||
// $sortedBrochuresPosts->posts_per_page = $posts_per_page;
|
||||
// $sortedBrochuresPosts->query_vars['posts_per_page'] = $posts_per_page;
|
||||
// $sortedBrochuresPosts->post_count = $posts_per_page;
|
||||
|
||||
|
||||
|
||||
// #### FICHES INFOS QUERY
|
||||
|
|
@ -41,13 +33,6 @@ $args = array(
|
|||
);
|
||||
$fichesInfosPosts = new WP_Query($args);
|
||||
|
||||
// $sortedFichesInfosPosts = sort_posts_per_thematiques_priority($fichesInfosPosts);
|
||||
// $sortedFichesInfosPosts->posts = array_slice($sortedBrochuresPosts->posts, 0, $posts_per_page);
|
||||
// $sortedFichesInfosPosts->found_posts = $posts_per_page;
|
||||
// $sortedFichesInfosPosts->posts_per_page = $posts_per_page;
|
||||
// $sortedFichesInfosPosts->query_vars['posts_per_page'] = $posts_per_page;
|
||||
// $sortedFichesInfosPosts->post_count = $posts_per_page;
|
||||
|
||||
|
||||
// #### WEBINAIRES QUERY
|
||||
$args = array(
|
||||
|
|
@ -60,11 +45,7 @@ $args = array(
|
|||
);
|
||||
$videosWebinairesPosts = new WP_Query($args);
|
||||
|
||||
// #### VIDÉOS & WEBINAIRES QUERY
|
||||
// $videosWebinairesDatas = get_field('videos_webinaires', $current_page_id)['videos_webinaires_datas'] ?? null;
|
||||
|
||||
$total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_posts + $videosWebinairesPosts->found_posts;
|
||||
// $total_posts_found = $sortedBrochuresPosts->found_posts + $fichesInfosPosts->found_posts + $videosWebinairesPosts->found_posts;
|
||||
|
||||
?>
|
||||
<div class="template-archives template-archives--publications">
|
||||
|
|
@ -96,7 +77,7 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
|
|||
"description" => __("Découvrez toutes nos publications et outils en ligne", "homegrade-theme__texte-fonctionnel"),
|
||||
"ctaSecondary" => array(
|
||||
"title" => $receivePrintedPublicationsDatas['cta_title'] ?? null,
|
||||
"url" => $receivePrintedPublicationsDatas['cta_document']['url'] ?? null,
|
||||
"url" => $receivePrintedPublicationsDatas['order_form_url'] ?? null,
|
||||
"target" => "_blank",
|
||||
"custom-class" => "paper-button",
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user