Page 1 of 1
Restrictions to custom post types

Posted:
November 18th, 2011, 11:25 am
by kaesarius
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???
Re: Restrictions to custom post types

Posted:
November 18th, 2011, 11:31 am
by Eduan
Why don't you try category access restrictions instead?
You can find them right under post access restrictions.
Re: Restrictions to custom post types

Posted:
November 18th, 2011, 11:48 am
by kaesarius
no, same result.
it's not a category. I believe that custom post type are different that categories. i cannot filter by category.
Re: Restrictions to custom post types

Posted:
November 18th, 2011, 11:54 am
by Eduan
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/
Re: Restrictions to custom post types

Posted:
November 18th, 2011, 12:07 pm
by kaesarius
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
Re: Restrictions to custom post types

Posted:
November 18th, 2011, 7:44 pm
by Raam Dev
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!
Re: Restrictions to custom post types

Posted:
November 19th, 2011, 5:55 am
by kaesarius
ok Raam, thanks for your time.
Re: Restrictions to custom post types

Posted:
November 19th, 2011, 11:04 pm
by Cristián Lávaque
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!
Re: Restrictions to custom post types

Posted:
November 20th, 2011, 12:45 pm
by kaesarius
Re: Restrictions to custom post types

Posted:
November 20th, 2011, 3:30 pm
by Raam Dev
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.
Re: Restrictions to custom post types

Posted:
November 20th, 2011, 7:17 pm
by kaesarius
Yes clases is in spanish the plural of clase.
Anyway, i have try with both was...:'(
Re: Restrictions to custom post types

Posted:
November 20th, 2011, 9:16 pm
by Raam Dev
Did you try it with TWO "s"? Try all-clasess (the extra 's' is not a mistake, please try it with TWO s's).
Re: Restrictions to custom post types

Posted:
November 21st, 2011, 2:17 am
by Cristián Lávaque
kaesarius, please try what Raam suggests.
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!
Re: Restrictions to custom post types

Posted:
November 21st, 2011, 6:22 am
by kaesarius
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.
Re: Restrictions to custom post types

Posted:
November 25th, 2011, 2:26 am
by Cristián Lávaque
Cool.

Re: Restrictions to custom post types

Posted:
November 27th, 2011, 12:34 pm
by Raam Dev
Glad it worked out, kaesarius!
