Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-29T15:33:11-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14737 2011-08-29T15:33:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14737&p=33261#p33261 <![CDATA[Re: How 2 protect posts based on custom_post_type /taxonomy ]]>

Statistics: Posted by Cristián Lávaque — August 29th, 2011, 3:33 pm


]]>
2011-08-28T20:24:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14737&p=33210#p33210 <![CDATA[Re: How 2 protect posts based on custom_post_type /taxonomy ]]>
Was about to write a long complicated post about taxonomies & co, when I got the super simple brilliant idea to look to URI and protect them that way :D

Worked for my easy case, for more complicated ones I don't know if this will be enough. If you just want to protect some content based on these new defined taxonomies but make it available to level zero, all those paypal buttons will not really help :-(

C.

Statistics: Posted by candy — August 28th, 2011, 8:24 pm


]]>
2011-08-28T02:41:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14737&p=33182#p33182 <![CDATA[Re: How 2 protect posts based on custom_post_type /taxonomy ]]> viewtopic.php?f=4&t=14651&p=32731#p32731

Statistics: Posted by Cristián Lávaque — August 28th, 2011, 2:41 am


]]>
2011-08-27T23:30:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14737&p=33161#p33161 <![CDATA[How 2 protect posts based on custom_post_type /taxonomy ?!?!]]>
Just hanging on a new issue now :-)

I have defined a new "custom post type" (called "movies") and a bunch of custom taxonomies for it.

How can I now restrict user access to that kind of posts (let's say called "movies") !??! So that only logged in users will see?
And what about taxonomies !??!

Not from the admin, as I have users posting from the frontend in that custom_post_type, so I'll need to use a php trick somehow based on that new "custom_post_type" and restrict access based on that, maybe smth like

<?php if (is_user_not_logged_in() && $level_req == 1) { ?>
<?php if ($id == ???) { ........

How to?
Thanks!

Statistics: Posted by candy — August 27th, 2011, 11:30 pm


]]>