Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




No snyc on new categories?

UserPost

11:52 am
March 17, 2011


brogr

New Member

posts 1

1

Hi,

I'm using the Role Scoper 1.3.27 with Wordpress 3.1 to hide certain categories from non-registered readers / restrict them to subscribers. However, whenever I create a new category, it seems to be hidden by default (although no restrictions are assigned to it). I then have to deactivate and reactivate the plugin to get the new category showing / being accessible to everyone.
Is there a way to fix this problem?

Thanks,
brogr

9:24 pm
April 21, 2011


in2dwww

Member

posts 6

2

I am having the same issue using WP 3.0.1 and RS 1.3.28.

When I add a new category, it is restricted by default (per my settings).  But when I assign a user to a role, it appears as assigned in the "category assigned" admin page of RS, but when logged in as the user, the category is not present.

9:59 pm
April 21, 2011


Kevin

Admin

posts 2503

3

That doesn't sound like the same issue. brogr's issue involved default restrictions on newly created categories, and was fixed in RS 1.3.28.

What roles do you have restricted and assigned? By "not present", do you mean the category checkbox is not available for selection in the post edit form? If so, is that for a new or existing post? If existing, what is the post status (visibility) and are any restrictions set directly on the post?

10:53 pm
April 21, 2011


in2dwww

Member

posts 6

4


Q: What roles do you have restricted and assigned?

A:

Post Reader: Unrestricted by default
Private Post Reader: Restricted by default
Post Contributor: Restricted by default
Post Author: Restricted by default
Post Editor: Restricted by default
Category Manager: Restricted by default
Category Assigner: Unrestricted by default 

Q: By "not present", do you mean the category checkbox is not available for selection in the post edit form?

A: The new category appears on /wp-admin/admin.php?page=rs-category-restrictions_t but it is not showing up when I use <?php wp_list_categories('name=quick_post_cat'); ?> in header.php (all the older categories do appear per role just fine).

Q:  If so, is that for a new or existing post?

A: New post and when creating navigation for user-allowed cats in header.php.

Q: If existing, what is the post status (visibility) and are any restrictions set directly on the post?

A: I can login as admin and go to Posts > Categories and see the newly created category just fine.  If I edit the new category, the cat restrictions and cat roles appear correctly.  I have assigned a user to "Post Contributor" role.  I have tried different users as well - no difference.

NOTE: I bounced the RS plugin by deactivating and reactivating and didn't get any result.  Also, I was running exec php plugin and thought it could be causing conflict - so I removed and deleted that plugin and tested: no change.

11:34 pm
April 21, 2011


Kevin

Admin

posts 2503

5

It appears that your new category is not included in the list because it has no posts! Try this:

wp_list_categories('name=quick_post_cat&hide_empty=0');

Be aware that setting the name to quick_post_cat causes the categories to be filtered based on the user's editing capabilities. If you want it filtered based on reading capabilities, name it anything else.

11:56 pm
April 21, 2011


in2dwww

Member

posts 6

6

Kevin said:

It appears that your new category is not included in the list because it has no posts! Try this:

wp_list_categories('name=quick_post_cat&hide_empty=0');

Be aware that setting the name to quick_post_cat causes the categories to be filtered based on the user's editing capabilities. If you want it filtered based on reading capabilities, name it anything else.


Whoa!  I've been so perplexed, I forgot to see the obvious!  I did a nice face plant and have the red hand marks to prove it now.

The fix works.   Thank you!

In my navigation, I'm only using quick_post_cat for logged-in users.  All users are able to post, so I'll see about making some changes so that editing capabilities don't slip through.


About the Agapetry forum

Currently Online:

17 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1247

Posts: 5656

Members:

There are 1259 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin