Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

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 1326

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.



Reply to Topic: Filter by tags?

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 1 + 4        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 667

Posts: 3053

Members:

There are 601 members

There are 1 guests


Kevin has made 1326 posts

Top Posters:

metal450 - 98

YikYak - 58

Ragnar - 36

Daisy - 35

LorenW - 33

Administrator: Kevin | Moderators: Kevin