Browse
For agents
About
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions
/
110710
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions
v110710
Switch version
260913
260909
260829
260814
260805
110710
110731
110812
110815
110912
110913
110915
110926
110927
111002
111003
111011
111017
111029
111105
111206
111216
111220
120213
120219
All 188 releases
Overview
Code
s2member
/
includes
/
menu-pages
/
code-samples
/
custom-queries-loop.php
custom-queries-loop.php
in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 110710, at includes/menu-pages/code-samples/custom-queries-loop.php
17 lines
283 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
detach_s2member_query_filters
(
)
;
3
query_posts
(
"
posts_per_page=5
"
)
;
4
5
if
(
have_posts
(
)
)
:
6
while
(
have_posts
(
)
)
:
7
the_post
(
)
;
8
9
if
(
!
is_permitted_by_s2member
(
)
)
10
continue
;
11
/*
Skip it. The current User/Member has NO access.
*/
12
13
endwhile
;
14
endif
;
15
16
wp_reset_query
(
)
;
17
?
>