WordPress.org

Ready to get started?Download WordPress

Forums

Membership
[resolved] Get 'Membership' to see post categories created by 'Events Calendar' (4 posts)

  1. klogan2
    Member
    Posted 3 months ago #

    Hi,
    I'm using Events Calendar (tri.be) and it can create its own post categories,,, seemingly the same exact way WP creates posts categories, and all the post categories are there in the DB (wp_terms). The only thing is that Membership is not recognizing the post categories created by Events Cal, so I can't set content restriction to some of the calendar events.
    I'm assuming something in my theme functions file could make Membership include the post categories made by Events Cal in the list of categories available in the access levels settings.
    For example, some calendar events will be for members only,, so I don't want them viewable to the public.
    Ideas???
    Screen grab of my DB showing 4 post categories, 2 created via normal WOrdpress and 2 created via Events Cal: Screen Grab

    Cheers,
    Kevin
    PS: I'm going to more or less CC this to the Events Calendar forum,,,hope that doesn't ruffle any feathers

    https://wordpress.org/plugins/membership/

  2. David
    WPMU DEV Support Staff
    Posted 3 months ago #

    Hi @klogan2,

    Thanks for posting this! Membership doesn't provide built-in support for custom post types or custom taxonomies, which I believe that plugin uses.

    The built-in category rule is specifically for the regular Post post-type and its taxonomy, 'category'.

    It's possible to use URL Groups to somewhat restrict access to taxonomies though, using regular expression like the following for example:

    http://domain.com/taxonomy/.*

    That would let you restrict access to the particular taxonomy you specify there in place of /taxonomy/.

    However, it's likely best to custom code something in your theme's template files to restrict access using Membership functions like mentioned here:
    http://premium.wpmudev.org/forums/topic/getting-membership-level-for-a-particular-user#post-105471

    Does that help?

    Any questions on this, please feel free to ask. We're here to help!

    Cheers,
    David

  3. klogan2
    Member
    Posted 3 months ago #

    thanks David,,, very useful,,, I'll give addding to my functions file a try, tha would seem the best way.
    Cheers,
    Kevin

  4. David
    WPMU DEV Support Staff
    Posted 3 months ago #

    Hi @klogan2,

    You're most welcome and I hope that works well for you. We'll be looking at adding post type and taxonomy support through a future version of the plugin, as it's currently in the process of a rather big update.

    We can't give an ETA on it but the developers are always working on it! In the meantime, any way we can assist with workarounds and code assistance, just let us know. :)

    Cheers,
    David

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.