Commit dd6897bf authored by root's avatar root

add : list of all members

parent b35d53d3
<?php
get_header();
?>
<ul>
<?php
$order="asc";
childrens_of_member_category();
if (isset($_GET["order"])){
$order = $_GET["order"];
if ($order!="asc" && $order != "desc"){
$order="asc";
}
}
global $post;
$args = array('posts_per_page' => 10, 'offset' => 0, 'category_name' => 'adherent', 'orderby' => 'title', 'order' => $order);
?>
<?php
//echo "url : " . $_SERVER['REQUEST_URI'];
$myposts = get_posts($args);
foreach ($myposts as $post) : setup_postdata($post);
$id = get_the_id();
$url = get_metadata("post", $id, "project_url")[0];
?>
<li>
<a href="<?php echo $url; ?>" target="_blank">
<?php the_post_thumbnail(array("200", "200")); ?> <br>
<?php the_title(); ?> <br>
<?php the_tags($before = ''); ?>
</a>
</li>
<?php endforeach;
wp_reset_postdata(); ?>
</ul>
<?php
//get_sidebar();
get_footer();
?>
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