Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Theme-WordPress-Adullact-org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adullact
Theme-WordPress-Adullact-org
Commits
ff9a5a38
Commit
ff9a5a38
authored
Aug 19, 2019
by
N. Peraldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit: members are recovered with get_pages()
parent
ff18bada
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
category-adherent.php
category-adherent.php
+5
-4
No files found.
category-adherent.php
View file @
ff9a5a38
...
...
@@ -56,16 +56,17 @@ $max_member_numero = ($page * $maxMembersPerPage);
</div>
</div>
<?php
echo
"<div class='adullact-members-list'>"
;
$args
=
array
(
'posts_per_page'
=>
-
1
,
'offset'
=>
"0"
,
'category_name'
=>
$category
,
'orderby'
=>
'title'
,
'order'
=>
$order
);
$myposts
=
get_posts
(
$args
);
$members_page
=
get_page_by_title
(
"membres"
);
$args
=
array
(
'child_of'
=>
$members_page
->
ID
,
'sort_order'
=>
$order
);
$mypages
=
get_pages
(
$args
);
$number_of_total_posts
=
count
(
$myp
ost
s
);
//pour les pages
$number_of_total_posts
=
count
(
$myp
age
s
);
//pour les pages
if
((
$number_of_total_posts
==
0
)
||
(
$number_of_total_posts
<
$min_member_numero
))
{
echo
"<h3>Aucun résultat.</h3>"
;
$pagination
=
false
;
}
else
{
$counter
=
1
;
foreach
(
$myp
ost
s
as
$post
)
:
setup_postdata
(
$post
);
foreach
(
$myp
age
s
as
$post
)
:
setup_postdata
(
$post
);
if
(
$counter
>=
$min_member_numero
)
{
if
(
$counter
<=
$max_member_numero
)
{
$id
=
get_the_id
();
...
...
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