PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Restrictions to custom post types

s2Member Plugin. A Membership plugin for WordPress®.

Restrictions to custom post types

Postby kaesarius » November 18th, 2011, 11:25 am

hi,

im trying to restrict acceso to a custom post type category called "clases" but i cant.

in the s2Members>Rectriction Options>Post Access Restrictions>Posts That Require Level #1 Or Higher:

i've wroten: all-clases

but all custom post types from this category still publics.
When i restrict to specifical post, for example id 623, it works fine.
That is the help:
Post IDs in comma-delimited format. Example: 1,2,3,34,8,21 — or you can type: all.
You can also include all Post IDs of a specific Post Type. Ex: 1,2,3,34,all-newspapers.
( which protects several Post IDs, and all Posts of type: newspaper )


am i doing something wrong???
User avatar
kaesarius
Registered User
Registered User
 
Posts: 28
Joined: November 4, 2011

Re: Restrictions to custom post types

Postby Eduan » November 18th, 2011, 11:31 am

Why don't you try category access restrictions instead?
You can find them right under post access restrictions.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Restrictions to custom post types

Postby kaesarius » November 18th, 2011, 11:48 am

no, same result.

it's not a category. I believe that custom post type are different that categories. i cannot filter by category.
User avatar
kaesarius
Registered User
Registered User
 
Posts: 28
Joined: November 4, 2011

Re: Restrictions to custom post types

Postby Eduan » November 18th, 2011, 11:54 am

Why don't you try tag access restrictions instead?
It's Jason favorite, though you might need a plugin, Page Tagger.
http://wordpress.org/extend/plugins/page-tagger/
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Restrictions to custom post types

Postby kaesarius » November 18th, 2011, 12:07 pm

thanks eduan, but i trying to do with s2member plugin, because it has the possibility, but something it's happenning wrong.

i dont want install more plugins to my wordpress. Finally they affect to the load speed...

thanks anyway
User avatar
kaesarius
Registered User
Registered User
 
Posts: 28
Joined: November 4, 2011

Re: Restrictions to custom post types

Postby Raam Dev » November 18th, 2011, 7:44 pm

Hi Kaesarius,

I just tested this same feature on my s2Member installation and it's not working for me either -- it could be a bug. I'm going to escalate this issue to our lead developer and see if he can take a look.

Thank you for your patience!
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Restrictions to custom post types

Postby kaesarius » November 19th, 2011, 5:55 am

ok Raam, thanks for your time.
User avatar
kaesarius
Registered User
Registered User
 
Posts: 28
Joined: November 4, 2011

Re: Restrictions to custom post types

Postby Cristián Lávaque » November 19th, 2011, 11:04 pm

I tested it and it worked for me.

kaesarius, could you please post a screenshot of the Post restriction panel? WP Admin -> s2Member -> Restriction Options -> Post

Could you also post a link to a post with that custom type so I try to view it as a visitor?

Thanks!
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Restrictions to custom post types

Postby kaesarius » November 20th, 2011, 12:45 pm

yes Cristián, it's here:
http://yogaencasa.tv/clases/prueba-clase-n5/
Image

thanks a lot.
User avatar
kaesarius
Registered User
Registered User
 
Posts: 28
Joined: November 4, 2011

Re: Restrictions to custom post types

Postby Raam Dev » November 20th, 2011, 3:30 pm

kaesarius,

Are you using all-clases in the Post Restrictions box or all-clasess? It looks like s2Member requires using the plural version of your Custom Post Type, so you probably need an extra "s" in there.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Restrictions to custom post types

Postby kaesarius » November 20th, 2011, 7:17 pm

Yes clases is in spanish the plural of clase.

Anyway, i have try with both was...:'(
User avatar
kaesarius
Registered User
Registered User
 
Posts: 28
Joined: November 4, 2011

Re: Restrictions to custom post types

Postby Raam Dev » November 20th, 2011, 9:16 pm

Did you try it with TWO "s"? Try all-clasess (the extra 's' is not a mistake, please try it with TWO s's).
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Restrictions to custom post types

Postby Cristián Lávaque » November 21st, 2011, 2:17 am

kaesarius, please try what Raam suggests.

kaesarius wrote:yes Cristián, it's here:
http://yogaencasa.tv/clases/prueba-clase-n5/
Image


Thank you. Could you post the screenshot without resizing?

Also, could you post the code you used to create the custom post type please? Thanks!
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Restrictions to custom post types

Postby kaesarius » November 21st, 2011, 6:22 am

Raam Dev wrote:Did you try it with TWO "s"? Try all-clasess (the extra 's' is not a mistake, please try it with TWO s's).


it works...thanks a lot Raam.

i've writen "all-clasess" and perfect. all custom post type of this "category" working.
User avatar
kaesarius
Registered User
Registered User
 
Posts: 28
Joined: November 4, 2011

Re: Restrictions to custom post types

Postby Cristián Lávaque » November 25th, 2011, 2:26 am

Cool. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Restrictions to custom post types

Postby Raam Dev » November 27th, 2011, 12:34 pm

Glad it worked out, kaesarius! :)
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests

cron