Commit 9ed7da86 authored by N. Peraldi's avatar N. Peraldi
Browse files

delete bad wordpress div

parent 0282107c
<?php <?php
//nombre de membres à afficher par ligne //nombre de membres à afficher par ligne
$maxMembersPerLine = 3; $maxMembersPerLine = 4;
get_header(); get_header();
?> ?>
<div class="wrap"> <div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main"> <main id="main" class="site-main" role="main">
<ul id="adullact-member-list"> <ul id="adullact-member-list">
<?php <?php
...@@ -25,7 +22,6 @@ get_header(); ...@@ -25,7 +22,6 @@ get_header();
$order = "asc"; $order = "asc";
} }
} }
$args = array('posts_per_page' => 10, 'offset' => 0, 'category_name' => $category, 'orderby' => 'title', 'order' => $order); $args = array('posts_per_page' => 10, 'offset' => 0, 'category_name' => $category, 'orderby' => 'title', 'order' => $order);
$myposts = get_posts($args); $myposts = get_posts($args);
echo "<br>"; echo "<br>";
...@@ -36,9 +32,7 @@ get_header(); ...@@ -36,9 +32,7 @@ get_header();
?> ?>
</ul> </ul>
<?php <?php
echo "<div class='adullact-members-list'>"; echo "<div class='adullact-members-list'>";
echo "<div class='adullact-line'>"; echo "<div class='adullact-line'>";
foreach ($myposts as $post) : setup_postdata($post); foreach ($myposts as $post) : setup_postdata($post);
$id = get_the_id(); $id = get_the_id();
...@@ -58,14 +52,10 @@ get_header(); ...@@ -58,14 +52,10 @@ get_header();
echo "</div>"; echo "</div>";
echo "<div class='adullact-line'>"; echo "<div class='adullact-line'>";
} }
endforeach; endforeach;
echo "</div></div>"; echo "</div></div>";
wp_reset_postdata(); ?> wp_reset_postdata(); ?>
</main> </main>
</div> </div>
</div>
<?php get_footer(); ?> <?php get_footer(); ?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment