• Resolved klogan2

    (@klogan2)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter klogan2

    (@klogan2)

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

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get 'Membership' to see post categories created by 'Events Calendar'’ is closed to new replies.