Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Theme-WordPress-Adullact-org
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adullact
Theme-WordPress-Adullact-org
Commits
dd6897bf
Commit
dd6897bf
authored
Jun 19, 2019
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add : list of all members
parent
b35d53d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
category-21.php
category-21.php
+63
-0
No files found.
category-21.php
0 → 100644
View file @
dd6897bf
<?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
();
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment