Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Filter by tags?

UserPost

8:18 pm
October 7, 2009


ururk

New Member

posts 1

1

Cool plugin! However… filtering by category presents some problems if I want to use the automatically generated URLs with /%category%/ as part of the permalink structure. Would it be possible to add in support to filter based on tags?

Here is a simple example:

Cat1 - id of 2

CategorySubscriber - id of 3

Cat2 - id of 4

Cat3 - id of 5


The URL to a post with the two categories checked:

Cat1, CategorySubscriber

would be:

/Cat1/post-title


However, the URL to a post with the these categories checked:

Cat2, CategorySubscriber

would be:

/CategorySubscriber/post-title

If I could use a tag to indicate if the post is restricted or not, that would work pretty well. Or are tags handled differently by WP that makes this impossible?

8:56 am
October 15, 2009


Kevin

Admin

posts 2502

2

It sounds like you're wishing for a "hide post if any categories unreadable" behavior. But Role Scoper works the other way - "show post if any categories readable". You can't use tags to define restrictions, for similar reasons.

To restrict a specific post below the visibility it would have with its regular categories, you have two options - both accessible via the Edit Post form:

1. Set the post visibility to Private. For best security, you should do this even if using method 2 below. Marking the post private hides it by default, and also allows you to grant read access to premium subscribers by assigning them a Private Post Reader role - either blog-wide via Roles > General or per-category via Roles > Category.

2. In the "Readers" metabox, select "Restrict for Post", and also select the Group for your Subscribers.

Regarding category selection for permalink… Maybe in the future, a plugin could let you control the priority order when a post has more than one category. Until then, an ugly hack if you really need to adjust that would be to manually modify the term_id and term_taxonomy for "CategorySubscriber" in the terms, term_taxonomy and term_relationships tables.


About the Agapetry forum

Currently Online:

16 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1244

Posts: 5649

Members:

There are 1254 members

There are 1 guests


Kevin has made 2502 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin